private void editUser() { if (usersCatalog.SelectedItem != null) { User user = (User) usersCatalog.SelectedItem; NewUserWin nuw = new NewUserWin(user); nuw.ShowDialog(); RefreshList(); } }
private void addUser_Click(object sender, System.Windows.RoutedEventArgs e) { NewUserWin nuw = new NewUserWin(); nuw.ShowDialog(); RefreshList(); }