public static DialogResult Show(string Text, string Caption, string btnOK, string btnCancel) { MsgBox = new AddDataMsg(); MsgBox.label1.Text = Text; MsgBox.btnCancel.Text = btnCancel; MsgBox.btnOK.Text = btnOK; MsgBox.ShowDialog(); return(result); }
private void dgvPatientDetails_MouseDoubleClick(object sender, MouseEventArgs e) { if (label3.Text == "Transport Officer" || label3.Text == "Chief Nurse") { MessageBox.Show("Please ask a nurse to add patient Details"); } else { AddDataMsg.Show("Select Patient for Incoming/Outgoing Case", "", "OK", "Cancel"); } }