public PatientInfo()
 {
     InitializeComponent();
     this.Office = new DoctorsOfficeView();
     this.Patient = new PatientView();
     MainControl.DataContext = Patient;
 }
 public AppointmentInfoWindow()
 {
     InitializeComponent();
     this.Appointment = new AppointmentView();
     this.Office = (DoctorsOfficeView)Application.Current.FindResource("Office");
     this.Patient = (PatientView)Application.Current.FindResource("Patient");
     Appointment.Patient = Patient.ContactInformation.Name;
 }
 public SelectTimeWindow()
 {
     InitializeComponent();
     this.Appointment = (AppointmentView)Application.Current.FindResource("Appointment");
     this.Office = (DoctorsOfficeView)Application.Current.FindResource("Office");
     this.Patient = (PatientView)Application.Current.FindResource("Patient");
     MainControl.DataContext = Appointment;
     AvailableTimes.ItemsSource = Appointment.AvailableTimes;
 }
        public Patient PatientViewConverter(DoctorsOfficeView Office, AppointmentView appointment, PatientView Patient)
        {
            ContactInformation contactInformation = ContactInformationViewConverter(Patient.ContactInformation);
            Insurance insurance = InsuranceViewConverter(Patient.insurance);
            Doctor doctor = Office.Operations.SearchDoctors(appointment.Doctor);
            DateTime preferredDate = appointment.Time.Date;
            TimeSpan preferredTime = appointment.Time.TimeOfDay;
            Symptom symptom = SymptomViewConverter(Patient.Symptom);

            return new Hospital.Patient(contactInformation, symptom, insurance, doctor, preferredDate, preferredTime);
        }
 public EnterPatientInfoWindow()
 {
     InitializeComponent();
     this.Office = new DoctorsOfficeView();
     this.Patient = new PatientView();
     this.Symptom = new SymptomView();
     MainControl.DataContext = Patient.ContactInformation;
     SymptomDescriptionInput.DataContext = Symptom;
     SymptomSeveritySelector.DataContext = Symptom;
     Application.Current.Resources["Office"] = Office;
 }