Пример #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();
            EditPatientDetails ep = new EditPatientDetails(label1.Text);

            ep.Show();
        }
Пример #2
0
 public static DialogResult Show(string Text, string Caption, string btnEdit, string btnCancel)
 {
     MsgBox                = new EditPatientDetails();
     MsgBox.label1.Text    = "EDIT TRANSFERRED REFERRAL CASE FROM KERICHO COUNTY REFERRAL HOSPITAL";
     MsgBox.label2.Text    = "Patient No.";
     MsgBox.button1.Text   = "Preview";
     MsgBox.button2.Text   = "Incoming Referral";
     MsgBox.button3.Text   = "Transferred Case";
     MsgBox.btnCancel.Text = "Back";
     MsgBox.btnEdit.Text   = "Save";
     MsgBox.ShowDialog();
     return(result);
 }
Пример #3
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");
            }
        }