示例#1
0
        private void barbtnThem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmToChucThi frm = new frmToChucThi(0, IDDM_MonHoc, TenMonHoc);

            frm.ShowDialog();
            grvMonThi_FocusedRowChanged(null, null);
        }
示例#2
0
 private void barbtnSua_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (KQHT_ToChucThiID <= 0)
     {
         ThongBao("Bạn chưa chọn đợt thi nào.");
         return;
     }
     if (bool.Parse(grvDotThi.GetDataRow(grvDotThi.FocusedRowHandle)["DongTui"].ToString()))
     {
         ThongBao("Đợt thi của môn này đã đóng túi, bạn không thể sửa.");
         return;
     }
     else
     {
         frmToChucThi frm = new frmToChucThi(KQHT_ToChucThiID, IDDM_MonHoc, TenMonHoc);
         frm.ShowDialog();
         grvMonThi_FocusedRowChanged(null, null);
     }
 }