public void CopyTo(TourCostRuleConstraint constraint)
        {
            constraint.Id             = this.id;
            constraint.Name           = this.name;
            constraint.ConstraintType = this.ConstraintType;
            this.properties.CopyTo(constraint.Properties);

            constraint.IsDirty = this.IsDirty;
        }
        public RuleConstraintTourDate(Entities.TourCostRuleConstraint constraint)
            : base(constraint)
        {
            InitializeComponent();

            CreateControls();

            this.ConstraintMapper = new TourDateConstraintMapper();
            this.date             = new ConstraintTourDate();
        }
        public RuleConstraintTypeSelector(Entities.TourCostRuleConstraint constraint)
            : base(constraint)
        {
            InitializeComponent();

            this.lblConstraintType = new FormLabel(0, "lblConstraintType", false, "Constraint type");
            this.tlpMain.Controls.Add(this.lblConstraintType, 0, 1);

            this.Dock = DockStyle.Fill;

            this.cbxConstraintTypes.SelectedIndexChanged += new
                                                            System.EventHandler(cbxConstraintTypes_SelectedIndexChanged);

            this.cbxConstraintTypes.DataSource = DomainModel.TourCostConstraintTypes.GetAll();
        }