コード例 #1
0
        /// <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();
        }
コード例 #2
0
ファイル: PlanCoursesForm.cs プロジェクト: kkrzaczkowski/SWKM
        /// <summary>
        /// Initializes a new instance of the <see cref="PlanCoursesForm"/> class.
        /// </summary>
        public PlanCoursesForm()
        {
            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.driverLogic = SWKM.Setup.IoC.Resolve<DriverLogic>();
            this.vehicleLogic = SWKM.Setup.IoC.Resolve<VehicleLogic>();

            InitializeComponent();

            this.RefreshComboBoxes();
            this.RefreshGrid();
        }