public RuleConstraintTourTime(Entities.TourCostRuleConstraint constraint) : base(constraint) { InitializeComponent(); CreateControls(); this.ConstraintMapper = new TourTimeConstraintMapper(); this.time = new ConstraintTourTime(); }
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(); } }