Ejemplo n.º 1
0
 public ListGroupViewModel(TaskGroupEntity groupEntity, ITaskGroupModel groupModel,
                           EntityToVmConverter entityToVmConverter, IEventAggregator eventAggregator)
 {
     GroupEntity          = groupEntity;
     _groupModel          = groupModel;
     _entityToVmConverter = entityToVmConverter;
     _eventAggregator     = eventAggregator;
     eventAggregator.Subscribe(this);
 }
 public TaskGroupListViewModel(ITaskModel taskModel, ITaskGroupModel groupModel,
                               IEventAggregator eventAggregator, EntityToVmConverter vmConverter, List <IBaseModel> models)
 {
     _taskModel       = taskModel;
     _groupModel      = groupModel;
     _eventAggregator = eventAggregator;
     _vmConverter     = vmConverter;
     _models          = models;
     eventAggregator.Subscribe(this);
 }