Beispiel #1
0
        private void btn_Sua_Click(object sender, EventArgs e)
        {
            btn_Luu.Enabled = true;
            btn_Huy.Enabled = true;

            btn_Them.Enabled = false;
            btn_Xoa.Enabled  = false;
            btn_Sua.Enabled  = false;

            try
            {
                qltk.SuaTK(txtMaNhanVien.Text, txtTenDN.Text, txtMK.Text, radioButtonQuanLi.Text, cbbTrangThai.Text);
                MessageBox.Show("Sửa thành công", "Thông báo");
                qltk.LayThongTin(dataGridViewTaiKhoan);
            }
            catch
            {
                MessageBox.Show("Lỗi");
            }
        }