private PropertyControlInfo(PropertyControlInfo cloneMe) : base(cloneMe) { this.property = cloneMe.property; this.controlType = (StaticListChoiceProperty)cloneMe.controlType.Clone(); this.valueDisplayNames = new Dictionary<object, string>(cloneMe.valueDisplayNames); }
private PropertyControlInfo(Property property) : base() { this.property = property; PropertyControlType defaultControlType = propertyTypeToDefaultControlType[this.property.GetType()]; this.controlType = StaticListChoiceProperty.CreateForEnum<PropertyControlType>(ControlInfoPropertyNames.ControlType, defaultControlType, false); this.controlType.ValueChanged += new EventHandler(ControlType_ValueChanged); this.ControlProperties = controlTypeToProperties[Pair.Create(property.GetType(), (PropertyControlType)this.controlType.Value)].Clone(); }