示例#1
0
        private void TsbThem_ItemClick(object sender, ItemClickEventArgs e)
        {
            SplashScreenManager.ShowForm(this, typeof(WaitForm1), true, true, false);
            var frmCauHoi = new E000012();

            frmCauHoi.IdDanhMuc = _currentNode?.Id;
            frmCauHoi.ShowDialog();
            if (frmCauHoi != null)
            {
                frmCauHoi.Dispose();
            }
            SplashScreenManager.CloseForm(false);
        }
示例#2
0
 private void TsbSua_ItemClick(object sender, ItemClickEventArgs e)
 {
     _currentCauHoi = gridView1.GetFocusedRow() as EX_CauHoi;
     if (_currentCauHoi != null)
     {
         E000012 frm = new E000012();
         if (_currentCauHoi.IsCauHoiCha ?? false)
         {
             frm.IsCauHoiCha = true;
             frm.IdCauHoiCha = _currentCauHoi.Id;
             frm.Mode        = ModeForm.CapNhat;
             frm.ShowDialog();
         }
         else
         {
             frm.IdCauHoi     = _currentCauHoi.Id;
             frm.CurentCauHoi = _currentCauHoi;
             frm.Mode         = ModeForm.CapNhat;
             frm.ShowDialog();
         }
     }
 }