public StateEventProperties(Dictionary <string, object> values) : this() { this.Properties = new ComponentChildItemCollection <StateEventProperties, StateEventProperty>(this); foreach (var kvp in values) { this.Properties.Add(new StateEventProperty { Parent = this, PropertyName = kvp.Key, Value = kvp.Value }); } }
public StateEventProperties() { this.Properties = new ComponentChildItemCollection <StateEventProperties, StateEventProperty>(this); this.Properties.Parent = this; }
/// <summary> /// Initializes a new instance of the <see cref="StateManager"/> class. /// </summary> /// <param name="parent">The parent.</param> public StateManager(IContainer parent) : base(parent) { this.States = new ComponentChildItemCollection <StateManager, StateItem>(this); }