Ejemplo n.º 1
0
 protected override void InternalAssignFrom(DefaultableMulti other)
 {
     if (other is ObjectValueInfo)
     {
         ObjectValueInfo info = (ObjectValueInfo)other;
         this.Enabled = info.Enabled;
         this.Value   = info.Value.Clone();
     }
 }
Ejemplo n.º 2
0
        protected override void InternalAssignFrom(DefaultableMulti other)
        {
            base.InternalAssignFrom(other);
            PropertyRangeConstraint otherConstraint = other as PropertyRangeConstraint;

            if (otherConstraint != null)
            {
                this.Min = (ObjectValueInfo)otherConstraint.Min.Clone();
                this.Max = (ObjectValueInfo)otherConstraint.Max.Clone();
            }
        }
Ejemplo n.º 3
0
        protected override void InternalDeserializeFromXml(XmlProxy content)
        {
            XmlProxy minXml = content.Childs["min"];
            XmlProxy maxXml = content.Childs["max"];

            this.Min = new ObjectValueInfo();
            this.Min.DeserializeFromXml(minXml);

            this.Max = new ObjectValueInfo();
            this.Max.DeserializeFromXml(maxXml);
        }
Ejemplo n.º 4
0
 protected override void InternalAssignFromPropertyValues(IDictionary propertyValues)
 {
     base.InternalAssignFromPropertyValues(propertyValues);
     this.Min = (ObjectValueInfo)(propertyValues["Min"] as ObjectValueInfo).Clone();
     this.Max = (ObjectValueInfo)(propertyValues["Max"] as ObjectValueInfo).Clone();
 }
Ejemplo n.º 5
0
 public PropertyRangeConstraint()
 {
     this.Min = new ObjectValueInfo();
     this.Max = new ObjectValueInfo();
 }
Ejemplo n.º 6
0
        protected override bool InternalEqualsTo(DefaultableMulti other)
        {
            ObjectValueInfo otherInfo = (ObjectValueInfo)other;

            return(this.Value.EqualsTo(otherInfo.Value));
        }