public void Activate() { foreach (var unitModel in _model.GetAll()) { _controllerCollection.Add(new TagUnitObserver(_context, _model, unitModel)); } _controllerCollection.Activate(); }
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(); }