/// <summary> /// Initializes a new instance of the class. /// </summary> internal Overview() { appointmentManager = new AppointmentManager(); appointmentViewCreate = new AppointmentViewCreate(appointmentManager); appointmentViewDisplay = new AppointmentViewDisplay(appointmentManager); appointmentViewDelete = new AppointmentViewDelete(appointmentManager, appointmentViewDisplay); appointmentViewStorage = new AppointmentViewStorage(appointmentManager); MainMenu(); }
/// <summary> /// Initializes a new instance of the class. /// </summary> /// <param name="appointmentManager">Manages all schedule-related tasks.</param>\ /// <param name="appointmentViewDisplay">Manages displaying the appointments.</param> internal AppointmentViewDelete(AppointmentManager appointmentManager, AppointmentViewDisplay appointmentViewDisplay) { this.appointmentManager = appointmentManager; this.appointmentViewDisplay = appointmentViewDisplay; }