示例#1
0
        public RuleConstraintTourTime(Entities.TourCostRuleConstraint constraint)
            : base(constraint)
        {
            InitializeComponent();

            CreateControls();

            this.ConstraintMapper = new TourTimeConstraintMapper();
            this.time             = new ConstraintTourTime();
        }
示例#2
0
        private void UpdateControlData()
        {
            Entities.ConstraintTourTime time = (Entities.ConstraintTourTime)
                                               this.ConstraintMapper.GetDisplayObject(this.constraint.Properties);

            if (time != null)
            {
                time.StartTime.CopyTo(this.ftsStartTime.Time);
                time.EndTime.CopyTo(this.ftsEndTime.Time);

                this.ftsStartTime.UpdateControlData();
                this.ftsEndTime.UpdateControlData();
            }
        }