Beispiel #1
0
        private void editPatient(String fName, String lName, String address, String allergies, String dob, String contactOne, String contactTwo, String emergencyContact, String bloodType, String sex)
        {
            Patient.Patient patient = new Patient.Patient();
            patient.firstName        = fName;
            patient.lastName         = lName;
            patient.address          = address;
            patient.allergies        = allergies;
            patient.dob              = dob;
            patient.bloodType        = bloodType;
            patient.contactOne       = contactOne;
            patient.contactTwo       = contactTwo;
            patient.emergencyContact = emergencyContact;
            patient.sex              = sex;

            bool success = patient.EditPatient(patient, patientID, this);

            if (success == true)
            {
                CustomMessageBox cm = new CustomMessageBox("Successfully Edited Patient", this, GotoPatient);
                cm.Show();
                ClearField();
            }
            //else
            //{
            //    CustomMessageBox cm = new CustomMessageBox("Failed to add new doctor", this);
            //    cm.Show();
            //}
        }