public PostponeAppointmentWIndow(NewUrgentAppointment parent, Patient patient, int duration, DoctorType doctorType, RoomType roomType, AppointmentType appointmentType, DateTime earliestAppointmentTime)
 {
     _parent                    = parent;
     _patient                   = patient;
     _appointmentDuration       = duration;
     _doctorType                = doctorType;
     _roomType                  = roomType;
     _appointmentType           = appointmentType;
     _earliestAppointmentTime   = earliestAppointmentTime;
     _appointmentsForPostponing = new List <Appointment>();
     InitializeComponent();
     _appointmentsInTheUpcomingWeek = GetAppointmentsForUpcomingWeek();
     InitializeAppointments(_appointmentsInTheUpcomingWeek);
 }
 public NewGuestPatientWindow(NewUrgentAppointment parent)
 {
     this._parent = parent;
     InitializeComponent();
     DataContext = this;
 }