예제 #1
0
 public Appointment(Paitent paitent, string time, Doctor doctor, string date, string problem)
 {
     this.Paitent = paitent;
     this.Time    = time;
     this.Doctor  = doctor;
     this.Date    = date;
     this.Problem = problem;
 }
예제 #2
0
 public Appointment()
 {
     this.paitent = new Paitent();
     this.time    = null;
     this.doctor  = new Doctor();
     this.date    = null;
     this.problem = null;
 }
        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);
        }