Exemple #1
0
 public Paitent()
 {
     this.FirstName    = null;
     this.LastName     = null;
     this.EmailAddress = null;
     this.PhoneNumber  = 0;
     this.Occupation   = null;
     medicalHistory    = new MedicalHistory();
     insuranceDetail   = new InsuranceDetail();
 }
        private Appointment getAppointmentClass()
        {
            MedicalHistory  medicalHistory  = new MedicalHistory(txtblockAlergy.Text, txtHeartDieases.Text, cmbBloodPressure.Text);
            InsuranceDetail insuranceDetail = new InsuranceDetail(txtHealthCardNo.Text, txtHealthCardName.Text, txtExpiryDate.Text, cmbCompany.Text);
            Paitent         paitent         = new Paitent(txtFName.Text, txtLName.Text, txtEmail.Text, ulong.Parse(txtPhoneNo.Text), txtOccupation.Text, medicalHistory, insuranceDetail);

            selectedDoctor = (Doctor)cmbDoctor.SelectedItem;
            Appointment appointment = new Appointment(paitent, cmbTime.Text, selectedDoctor, txtDate.Text, txtProblem.Text);

            return(appointment);
        }
Exemple #3
0
 public Paitent(string firstName, string lastName, string emailAddress, ulong phoneNumber, string occupation, MedicalHistory medicalHistory, InsuranceDetail insuranceDetail)
 {
     this.FirstName       = firstName;
     this.LastName        = lastName;
     this.EmailAddress    = emailAddress;
     this.PhoneNumber     = phoneNumber;
     this.Occupation      = occupation;
     this.MedicalHistory  = medicalHistory;
     this.InsuranceDetail = insuranceDetail;
 }