Esempio n. 1
0
 public Edit_User(string UserName, bool option)
 {
     //InitializeComponent();
     //Username = UserName;
     //this.Text = "编辑用户";
     //Add = false;
     db.DeleteUser(UserName);
 }
Esempio n. 2
0
        private void BT_Delete_Click(object sender, EventArgs e)
        {
            if (gv.RowCount == 0)
            {
                MessageBox.Show("没有选择项");
                return;
            }
            if (MessageBox.Show("确定需要删除吗?", "警告", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
            {
                return;
            }
            string Name = gv.GetFocusedRowCellValue("USER").ToString();

            db.DeleteUser(Name);

            Frm_User_Load(this, null);
        }