protected override void InternalAssignFrom(DefaultableMulti other) { if (other is ObjectValueInfo) { ObjectValueInfo info = (ObjectValueInfo)other; this.Enabled = info.Enabled; this.Value = info.Value.Clone(); } }
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(); } }
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); }
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(); }
public PropertyRangeConstraint() { this.Min = new ObjectValueInfo(); this.Max = new ObjectValueInfo(); }
protected override bool InternalEqualsTo(DefaultableMulti other) { ObjectValueInfo otherInfo = (ObjectValueInfo)other; return(this.Value.EqualsTo(otherInfo.Value)); }