Ejemplo n.º 1
0
        private void mbtnStartExamination_Click(object sender, EventArgs e)
        {
            int?isStart = StartExamination?.Invoke();

            if (isStart.Value == 0)
            {
                //open new form here
                this.Hide();
                using (frmExam frm = new frmExam(TheLatestExamDetail.ExamDetailId, CurrentUser.Username))
                {
                    frm.formClosed += Frm_formClosed;
                    frm.ShowDialog();
                }
                this.Show();
            }
            else
            {
                MessageBox.Show(Message);
                //reset exam detail and exam list
                if (isStart.Value == 1)
                {
                    ExamResultFilter?.Invoke(mcmbExamResult.SelectedValue, null);
                    ExamDetailFilter?.Invoke(mcmbExamDetail.SelectedValue, null);
                }
            }
        }
Ejemplo n.º 2
0
 private void McmbExamResult_SelectedIndexChanged(object sender, EventArgs e)
 {
     ExamResultFilter?.Invoke(mcmbExamResult.SelectedValue, null);
 }