private void DeleteUser(object sender, RoutedEventArgs e) { var usr = new UserList(_ds); usr.SelectUser(_user); usr.DeleteUser(); Close(); }
public FrmChangeUser(DataSet parent, string user) { InitializeComponent(); _usr = new UserList(parent); try { _usr.SelectUser(user); TbNewUsername.Text = user; } catch(ArgumentOutOfRangeException ex) { MessageBox.Show(ex.Message, "Fehler", MessageBoxButton.OK, MessageBoxImage.Error); } }