Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
        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();
        }
 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();
 }