Пример #1
0
 public EditGroupViewModel(IEventAggregator eventAggregator, ITaskGroupModel groupModel)
 {
     _eventAggregator = eventAggregator;
     _groupModel      = groupModel;
     CreateNew();
     _eventAggregator.Subscribe(this);
 }
Пример #2
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);
 }
Пример #4
0
 public EntityToVmConverter(ITaskModel taskModel, ITaskGroupModel groupModel, IEventAggregator eventAggregator)
 {
     _taskModel       = taskModel;
     _groupModel      = groupModel;
     _eventAggregator = eventAggregator;
 }
Пример #5
0
 public TaskModel(IDbRepository <TaskEntity> taskRepository, ITaskGroupModel groupModel)
 {
     _taskRepository = taskRepository;
     _groupModel     = groupModel;
 }