private void btnInsert_Click(object sender, EventArgs e) { frmThaoTacGV frmThem = new frmThaoTacGV(null, null, DateTime.Now, true, null, null, null, 1); frmThem.ShowDialog(); Hienthi(); }
private void btnThem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { VGiaoVien.frmThaoTacGV frm = new frmThaoTacGV(null); frm.ShowDialog(); DataTable dt = sqlHelper.Query(_Query); Hienthi(dt); }
private void btnSua_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (IDmember == null) { MessageBox.Show("No Select!!", "Thông tin", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } VGiaoVien.frmThaoTacGV frm = new frmThaoTacGV(IDmember); frm.ShowDialog(); DataTable dt = sqlHelper.Query(_Query); Hienthi(dt); }
private void btnUpdate_Click(object sender, EventArgs e) { if (IDmember == null) { MessageBox.Show("No Select!!", "Thông tin", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } else { frmThaoTacGV frmSua = new frmThaoTacGV(MaGV, HoTen, NgaySinh, GioiTinh, Sdt, DiaChi, TenMon, 2); frmSua.ShowDialog(); Hienthi(); } }