private void btnThemPhanQuyen_Click(object sender, EventArgs e) { // save nhật kí b_nkht.Call_Insert_NhatKiHeThong(Users_Name, this.Text, btnThemPhanQuyen.Text); // frm_ThemQuyenHan frmTQH = new frm_ThemQuyenHan(); frmTQH.ShowDialog(); InitGridNguoiDung(); InitGridPhanQuyen(""); this.Refresh(); dtgrNguoiDung.Refresh(); dtgridPhanQuyen.Refresh(); Application.DoEvents(); }
private void btnSuaVaiTro_Click(object sender, EventArgs e) { // save nhật kí b_nkht.Call_Insert_NhatKiHeThong(Users_Name, this.Text, btnSuaVaiTro.Text); // int index = dtgrNguoiDung.CurrentRow.Index; string s = dtgrNguoiDung.Rows[index].Cells[1].Value.ToString(); frm_ThemQuyenHan frmTQH = new frm_ThemQuyenHan(); frmTQH.Get_username_To_from(s); frmTQH.ShowDialog(); InitGridNguoiDung(); InitGridPhanQuyen(""); this.Refresh(); dtgrNguoiDung.Refresh(); dtgridPhanQuyen.Refresh(); Application.DoEvents(); }