Пример #1
0
 public void Activate()
 {
     foreach (var unitModel in _model.GetAll())
     {
         _controllerCollection.Add(new TagUnitObserver(_context, _model, unitModel));
     }
     _controllerCollection.Activate();
 }
Пример #2
0
        public void Activate()
        {
            foreach (var tag in _model.GetAll())
            {
                var component  = _component.Create();
                var controller = new SearchUnitController(_context, tag, component);
                _controllerCollection.Add(controller);
            }

            _controllerCollection.Activate();
        }