diff options
| author | Roy <roy.mail.net@gmail.com> | 2017-12-16 13:40:12 +0200 |
|---|---|---|
| committer | Roy <roy.mail.net@gmail.com> | 2017-12-16 13:40:12 +0200 |
| commit | 5cc13a65395796698f1cbb9acb543cf9d3d3a44e (patch) | |
| tree | fd344ed72ec7211a095768edcabdffa27cc77071 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views | |
| parent | 80f31756eb8c833e16724ce11ce42f3e86c78fc1 (diff) | |
| download | Tango-5cc13a65395796698f1cbb9acb543cf9d3d3a44e.tar.gz Tango-5cc13a65395796698f1cbb9acb543cf9d3d3a44e.zip | |
Added some tables to DB module.
Implemented custom side bar for entity editing.
Implemented auto save of last user email and password.
Implemented cryptography on Core.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/LoginView.xaml.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/LoginView.xaml.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/LoginView.xaml.cs index a57594d75..9ad7b03a2 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/LoginView.xaml.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/LoginView.xaml.cs @@ -13,6 +13,8 @@ using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using static Tango.SharedUI.Controls.MultiTransitionControl; +using SimpleValidator.Extensions; +using Tango.Settings; namespace Tango.MachineStudio.UI.Views { @@ -37,6 +39,13 @@ namespace Tango.MachineStudio.UI.Views public void OnTransitionCompleted() { txtEmail.Focus(); + + if (txtEmail.Text.IsNotNullOrWhiteSpace()) + { + txtPass.Focus(); + } + + txtPass.Password = SettingsManager.Default.MachineStudio.LastLoginPassword; } private void txtPass_PasswordChanged(object sender, RoutedEventArgs e) |
