private void btSearch_Click(object sender, EventArgs e) { ExamList el = new ExamList(dtpFrom.Value.ToString("yyyy-MM-dd"), dtpTo.Value.ToString("yyyy-MM-dd"), null, cbDepartment.SelectedValue.ToString(), null, false); el.ShowDialog(this); this.Close(); }
private void btDateSearch_Click(object sender, EventArgs e) { ExamList el = new ExamList(dtpExamDate.Value.ToString("yyyy-MM-dd"), dtpExamDate.Value.ToString("yyyy-MM-dd"), null, null, null, false); if (el.exam_list.Rows.Count == 0)//If there was no exam, dispose ExamList form. { MessageBox.Show(Properties.Resources.NoExam, "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { el.ShowDialog(this); } el.Dispose(); }
private void btDateSearch_Click(object sender, EventArgs e) { ExamList el = new ExamList(dtpExamDate.Value.ToString("yyyy-MM-dd"), dtpExamDate.Value.ToString("yyyy-MM-dd"), null, null, null, false); if (el.exam_list.Rows.Count == 0)//If there was no exam, dispose ExamList form. { MessageBox.Show(FindingsEditor.Properties.Resources.NoExam, "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { el.ShowDialog(this); } el.Dispose(); }