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); } }
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(); } }