private void BtnThem_Click(object sender, EventArgs e) { frmThemKhuVuc frmthem = new frmThemKhuVuc(); frmthem.ThemThanhCong += FillGridView; frmthem.ThemThanhCong += NhatKyThem; frmthem.ShowDialog(); }
private void LkueKhuVuc_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (e.Button.Index == 1) { frmThemKhuVuc kv = new frmThemKhuVuc(); kv.ThemThanhCong += FillCbKhuVuc; kv.ShowDialog(); } }
private void BtnSua_Click(object sender, EventArgs e) { if (CurRowIndex >= 0) { KhuVuc kv = LayKVDangChon(); frmThemKhuVuc frmSua = new frmThemKhuVuc(kv); frmSua.CapNhatThanhCong += FillGridView; frmSua.CapNhatThanhCong += NhatKyCapNhat; frmSua.ShowDialog(); } }