Exemplo n.º 1
0
        private void Logout_Click(object sender, RoutedEventArgs e)
        {
            AuthView authView = new AuthView();

            authView.Show();
            Close();
        }
Exemplo n.º 2
0
 private void Save_Click(object sender, RoutedEventArgs e)
 {
     if (validatation == null)
     {
         User admin = new User();
         admin.Login    = "******";
         admin.Password = SecurityController.Encrypt(Password.Password);
         EntityController.Add(admin);
         AuthView window = new AuthView();
         window.Show();
         Close();
     }
     else
     {
         MessageBox.Show(validatation, "Ошибка сохранения", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }