Example #1
0
 private void tlbtnDel_Click(object sender, EventArgs e)
 {
     if (ID == 0)
     {
         MessageBox.Show("请选择将要删除的系统用户!", "错误提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return;
     }
     baseinfo.DeleteSysUser(ID);
     MessageBox.Show("系统用户--删除成功!", "成功提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
     dgvSysUserList.DataSource = baseinfo.GetAllUser().Tables[0].DefaultView;
     this.SetHeadText();
 }