private void NewUserHandler(object sender, RoutedEventArgs e) { EditUserWindow _new = new EditUserWindow(null); _new.ShowDialog(); Users.ItemsSource = userMapper.Select(out _).ToList(); }
private void Users_MouseDoubleClick(object sender, MouseButtonEventArgs e) { User selected = (User)Users.SelectedItem; EditUserWindow edit = new EditUserWindow(selected); edit.Show(); }