public ViewModelStateRuleCollection(ControlViewModel owningControl, StateRuleCollection stateRules) { _owningControl = owningControl; foreach (StateRule_t stateRule in stateRules) { StateRuleViewModel stateRuleViewModel = new StateRuleViewModel(owningControl, stateRule); Add(stateRuleViewModel); } }
/// <summary> /// Initializes a new <see cref="Control_t"/> instance with the specified identifier as id. /// </summary> /// <param name="id">Id of this control.</param> protected Control_t(string id) { Id = id; _stateRules = new StateRuleCollection(this); }