示例#1
0
 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);
 }
示例#2
0
 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");
     }
 }