Exemple #1
0
 public EditTaskViewModel(
     Guid taskId,
     ITasksModel tasksModel,
     IEditTimeBlocksViewModelFactory editTimeBlocksViewModelFactory,
     IGroupSelectorViewModel groupSelectorViewModel)
 {
     GroupSelectorViewModel = groupSelectorViewModel;
     this.tasksModel = tasksModel;
     task = tasksModel.Get(taskId);
     groupSelectorViewModel.SelectedGroupId = task.GroupId;
     UpdateTaskCommand = new RelayCommand(UpdateTaskExecute);
     EditTimeBlocksViewModel = editTimeBlocksViewModelFactory.Create(taskId);
 }
Exemple #2
0
 public EditTaskViewModel(
     Guid taskId,
     ITasksModel tasksModel,
     IEditTimeBlocksViewModelFactory editTimeBlocksViewModelFactory,
     IGroupSelectorViewModel groupSelectorViewModel)
 {
     GroupSelectorViewModel = groupSelectorViewModel;
     this.tasksModel        = tasksModel;
     task = tasksModel.Get(taskId);
     groupSelectorViewModel.SelectedGroupId = task.GroupId;
     UpdateTaskCommand       = new RelayCommand(UpdateTaskExecute);
     EditTimeBlocksViewModel = editTimeBlocksViewModelFactory.Create(taskId);
 }
 public NewTaskViewModel(ITasksModel tasksModel, IGroupSelectorViewModel groupSelectorViewModel)
 {
     this.tasksModel        = tasksModel;
     GroupSelectorViewModel = groupSelectorViewModel;
     CreateTaskCommand      = new RelayCommand(CreateTaskExecute);
 }
Exemple #4
0
 public NewTaskViewModel(ITasksModel tasksModel, IGroupSelectorViewModel groupSelectorViewModel)
 {
     this.tasksModel = tasksModel;
     GroupSelectorViewModel = groupSelectorViewModel;
     CreateTaskCommand = new RelayCommand(CreateTaskExecute);
 }