Beispiel #1
0
 public static DialogResult Show(string Text, string Caption, string btnSave, string btnCancel)
 {
     MsgBox                = new ApproveTransfers();
     MsgBox.label1.Text    = Text;
     MsgBox.label3.Text    = Text;
     MsgBox.btnCancel.Text = btnCancel;
     MsgBox.btnOK.Text     = btnSave;
     MsgBox.ShowDialog();
     return(result);
 }
Beispiel #2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            if (cmbCase.SelectedIndex == 0)
            {
                ApproverReferrals.Show("KERICHO COUNTY REFERRAL HOSPITAL", "", "Approve", "Cancel"); MsgBox.Close();
            }
            else if (cmbCase.SelectedIndex == 1)
            {
                ApproveTransfers.Show("KERICHO COUNTY REFERRAL HOSPITAL", "", "Approve", "Cancel"); MsgBox.Close();
            }
            else if (cmbCase.SelectedIndex == 2)
            {
                EditPatientDetails.Show("EDIT TRANSFERRED REFERRAL CASE FROM KERICHO COUNTY REFERRAL HOSPITAL", "", "Edit", "Cancel"); MsgBox.Close();
            }

            else
            {
                MessageBox.Show("Please Select at least one Case to view");
            }
        }