private void button_callNext_Click(object sender, EventArgs e) { bool isGetPatSuccess; String msg = ""; callNextPatient: isGetPatSuccess = patMgr.doctorCallNextPat(ref msg); if (isGetPatSuccess) { DialogResult isHere; isHere = MessageBox.Show(msg, "", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question); if (isHere == System.Windows.Forms.DialogResult.Yes) { patMgr.doctorCallNextPatAnswered(ref msg); openConsultationForm(); } else if (isHere == System.Windows.Forms.DialogResult.No) { goto callNextPatient; } else if (isHere == System.Windows.Forms.DialogResult.Cancel) { patMgr.stopCallNextPat(ref msg); } } else { MessageBox.Show(msg, "", MessageBoxButtons.OK, MessageBoxIcon.Information); } waitingList1.refresh(); }
private void button_callNext_Click(object sender, EventArgs e) { bool isGetPatSuccess; String msg = ""; callNextPatient: isGetPatSuccess = patMgr.staffCallNextPat(((UserObj)(comboBox_NextPat_MOIC.SelectedItem)).Value, ref msg); if (isGetPatSuccess) { DialogResult isHere; isHere = MessageBox.Show(msg, "", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question); if (isHere == System.Windows.Forms.DialogResult.Yes) { patMgr.staffCallNextPatAnswered(((UserObj)(comboBox_NextPat_MOIC.SelectedItem)).Value, ref msg); } else if (isHere == System.Windows.Forms.DialogResult.No) { goto callNextPatient; } else if (isHere == System.Windows.Forms.DialogResult.Cancel) { patMgr.stopCallNextPat(ref msg); } } else { MessageBox.Show(msg, "", MessageBoxButtons.OK, MessageBoxIcon.Information); } waitingList1.refresh(); }