示例#1
0
 private void Btn_DelUser_Click(object sender, EventArgs e)
 {
     try
     {
         WriteServicesUsers_.DeleteUser(Users_);
         MessageBox.Show("User has been Delete");
         SetDataGridView();
         CleanText();
         GBox_AddUser.Enabled = true;
         GBox_UpdUser.Enabled = false;
         GBox_DelUser.Enabled = false;
     }
     catch (Exception ex) {
         MessageBox.Show(ex.Message);
     }
 }