コード例 #1
0
        private void BtnThem_Click(object sender, EventArgs e)
        {
            frmThemKhuVuc frmthem = new frmThemKhuVuc();

            frmthem.ThemThanhCong += FillGridView;
            frmthem.ThemThanhCong += NhatKyThem;
            frmthem.ShowDialog();
        }
コード例 #2
0
 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();
     }
 }
コード例 #3
0
        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();
            }
        }