示例#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();
     }
 }
示例#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();
            }
        }
示例#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);
        }
示例#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();
 }
示例#5
0
 public PropertyRangeConstraint()
 {
     this.Min = new ObjectValueInfo();
     this.Max = new ObjectValueInfo();
 }
示例#6
0
        protected override bool InternalEqualsTo(DefaultableMulti other)
        {
            ObjectValueInfo otherInfo = (ObjectValueInfo)other;

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