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); } } }
private void McmbExamDetail_SelectedIndexChanged(object sender, EventArgs e) { ExamDetailFilter?.Invoke(mcmbExamDetail.SelectedValue, null); }