Exemple #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     if (record.CheckCaseNo(val.PatientID, int.Parse(txtCase.Text)))
     {
         lab.frmLabMenu lab_menu = new lab.frmLabMenu();
         record.AddPatientRecord(val.PatientID, txtRequest.Text, int.Parse(txtCase.Text));
         MetroFramework.MetroMessageBox.Show(this, "Patient record saved!",
                                             "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
         this.Hide();
         lab_menu.ShowDialog();
     }
     else
     {
         MetroFramework.MetroMessageBox.Show(this, "Case number already exist!",
                                             "Record Exist!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         txtCase.Focus();
     }
 }
 private void btnAddTest_Click(object sender, EventArgs e)
 {
     lab.frmLabMenu lab_menu = new lab.frmLabMenu();
     lab_menu.FormClosing += new FormClosingEventHandler(this.frmPatients_FormClosing);
     lab_menu.ShowDialog();
 }