コード例 #1
0
        public ViewModelStateRuleCollection(ControlViewModel owningControl, StateRuleCollection stateRules)
        {
            _owningControl = owningControl;

            foreach (StateRule_t stateRule in stateRules)
            {
                StateRuleViewModel stateRuleViewModel = new StateRuleViewModel(owningControl, stateRule);

                Add(stateRuleViewModel);
            }
        }
コード例 #2
0
ファイル: Control_t.cs プロジェクト: w1r2p1/atdl4net
 /// <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);
 }