/// <summary> /// Initializes a new instance of the <see cref="ExecuteCoursesForm"/> class. /// </summary> public ExecuteCoursesForm() { this.courseLogic = SWKM.Setup.IoC.Resolve<CourseLogic>(); this.lineLogic = SWKM.Setup.IoC.Resolve<LineLogic>(); InitializeComponent(); this.RefreshComboBoxes(); this.RefreshGrid(); }
/// <summary> /// Initializes a new instance of the <see cref="ExecutePlanCourseForm"/> class. /// </summary> /// <param name="form">The form.</param> /// <param name="planCourseId">The plan course id.</param> public ExecutePlanCourseForm(ExecuteCoursesForm form, int planCourseId) { this.courseLogic = SWKM.Setup.IoC.Resolve<CourseLogic>(); this.driverLogic = SWKM.Setup.IoC.Resolve<DriverLogic>(); this.vehicleLogic = SWKM.Setup.IoC.Resolve<VehicleLogic>(); this.courseId = planCourseId; this.executeCoursesForm = form; InitializeComponent(); this.RefreshFields(); }
/// <summary> /// Initializes a new instance of the <see cref="CoursesForm"/> class. /// </summary> public CoursesForm() { this.courseLogic = SWKM.Setup.IoC.Resolve<CourseLogic>(); this.lineLogic = SWKM.Setup.IoC.Resolve<LineLogic>(); this.schedulePeriodLogic = SWKM.Setup.IoC.Resolve<SchedulePeriodLogic>(); this.dayTypeLogic = SWKM.Setup.IoC.Resolve<DayTypeLogic>(); this.exceptionLogic = SWKM.Setup.IoC.Resolve<ExceptionLogic>(); InitializeComponent(); this.RefreshComboBoxes(); this.RefreshGrid(); }
/// <summary> /// Initializes a new instance of the <see cref="EditCourseForm"/> class. /// </summary> /// <param name="form">The form.</param> public EditCourseForm(CoursesForm form) { this.courseLogic = SWKM.Setup.IoC.Resolve<CourseLogic>(); this.lineLogic = SWKM.Setup.IoC.Resolve<LineLogic>(); this.schedulePeriodLogic = SWKM.Setup.IoC.Resolve<SchedulePeriodLogic>(); this.dayTypeLogic = SWKM.Setup.IoC.Resolve<DayTypeLogic>(); this.exceptionLogic = SWKM.Setup.IoC.Resolve<ExceptionLogic>(); this.coursesForm = form; InitializeComponent(); this.Text = this.footerLbl.Text = "Dodaj nowy kurs"; this.RefreshComboBoxes(); }