Example #1
0
        private void BtnThem_Click(object sender, EventArgs e)
        {
            frmThemBoPhan frmthem = new frmThemBoPhan();

            frmthem.ThemThanhCong += FillGridView;
            frmthem.ThemThanhCong += NhatKyThem;
            frmthem.ShowDialog();
        }
 private void LkueBoPhan_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Index == 1)
     {
         frmThemBoPhan bp = new frmThemBoPhan();
         bp.ThemThanhCong += FillCbBoPhan;
         bp.ShowDialog();
     }
 }
Example #3
0
        private void BtnSua_Click(object sender, EventArgs e)
        {
            if (CurRowIndex >= 0)
            {
                BoPhan bp = LayBPDangChon();

                frmThemBoPhan frmSua = new frmThemBoPhan(bp);
                frmSua.CapNhatThanhCong += FillGridView;
                frmSua.CapNhatThanhCong += NhatKySua;
                frmSua.ShowDialog();
            }
        }