private void Logout_Click(object sender, RoutedEventArgs e) { AuthView authView = new AuthView(); authView.Show(); Close(); }
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); } }