Esempio n. 1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        Patients patient = new Patients();

        patient.AddPatient(txtPatientID.Text, txtFullName.Text, txtCellNumber.Text, txtAddress.Text, txtDate.Text, txtTime.Text, txtMessage.Text);
        lblStatus.Text = patient.status;
    }
Esempio n. 2
0
 public static bool AddPatient(Patient p, int id) // adiciona um novo paciente na lista allPatients
 {
     if (id > 0)
     {
         try
         {
             return(Patients.AddPatient(p));
         }
         catch (InsertException e)
         {
             throw e;
         }
     }
     return(false);
 }