예제 #1
0
 private void bbiResult_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (list[gridView1.GetSelectedRows()[0]].NgayPV != null)
     {
         frmKQHoSoPV frm = new frmKQHoSoPV(list[gridView1.GetSelectedRows()[0]].HoSoPVID);
         frm.ShowDialog();
         LoadData();
     }
     else
     {
         XtraMessageBox.Show("Chưa đặt lịch", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
예제 #2
0
 private void gridView1_DoubleClick(object sender, EventArgs e)
 {
     if (list[gridView1.GetSelectedRows()[0]].NgayPV == null)
     {
         frmDatLichPV frm = new frmDatLichPV(list[gridView1.GetSelectedRows()[0]].NhanVienID ?? default(int));
         frm.ShowDialog();
         LoadData();
     }
     else
     {
         frmKQHoSoPV frm = new frmKQHoSoPV(list[gridView1.GetSelectedRows()[0]].NhanVienID ?? default(int));
         frm.ShowDialog();
         LoadData();
     }
 }