コード例 #1
0
 private void DeleteUser(object sender, RoutedEventArgs e)
 {
     var usr = new UserList(_ds);
     usr.SelectUser(_user);
     usr.DeleteUser();
     Close();
 }
コード例 #2
0
 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);
     }
 }