public TaskListViewModel( ITasksModel tasksModel, ITaskListItemViewModelFactory taskListItemViewModelFactory, IActiveTaskController activeTaskController, ITimeBlockMediatorFactory timeBlockMediatorFactory, ISelectedItemCommandFactory<IStartTaskCommand> startTaskCommandFactory, ISelectedItemCommandFactory<IStopTaskCommand> stopTaskCommandFactory, ISelectedItemCommandFactory<IEditTaskCommand> editTaskCommandFactory, ISelectedItemCommandFactory<IMoveUpTaskCommand> moveUpTaskCommandFactory, ISelectedItemCommandFactory<IMoveDownTaskCommand> moveDownTaskCommandFactory, ISelectedItemCommandFactory<IDeleteTaskCommand> deleteTaskCommandFactory) { this.tasksModel = tasksModel; this.taskListItemViewModelFactory = taskListItemViewModelFactory; this.activeTaskController = activeTaskController; timeBlockMediator = timeBlockMediatorFactory.Create(activeTaskController); CreateCommands( startTaskCommandFactory, stopTaskCommandFactory, editTaskCommandFactory, moveUpTaskCommandFactory, moveDownTaskCommandFactory, deleteTaskCommandFactory); PopulateItems(); SubscribeToTaskModelEvents(); SubscribeToActiveTaskControllerEvents(); }
public TaskListViewModel( ITasksModel tasksModel, ITaskListItemViewModelFactory taskListItemViewModelFactory, IActiveTaskController activeTaskController, ITimeBlockMediatorFactory timeBlockMediatorFactory, ISelectedItemCommandFactory <IStartTaskCommand> startTaskCommandFactory, ISelectedItemCommandFactory <IStopTaskCommand> stopTaskCommandFactory, ISelectedItemCommandFactory <IEditTaskCommand> editTaskCommandFactory, ISelectedItemCommandFactory <IMoveUpTaskCommand> moveUpTaskCommandFactory, ISelectedItemCommandFactory <IMoveDownTaskCommand> moveDownTaskCommandFactory, ISelectedItemCommandFactory <IDeleteTaskCommand> deleteTaskCommandFactory) { this.tasksModel = tasksModel; this.taskListItemViewModelFactory = taskListItemViewModelFactory; this.activeTaskController = activeTaskController; timeBlockMediator = timeBlockMediatorFactory.Create(activeTaskController); CreateCommands( startTaskCommandFactory, stopTaskCommandFactory, editTaskCommandFactory, moveUpTaskCommandFactory, moveDownTaskCommandFactory, deleteTaskCommandFactory); PopulateItems(); SubscribeToTaskModelEvents(); SubscribeToActiveTaskControllerEvents(); }
public StatusBarViewModel( ITimeBlocksModel timeBlocksModel, IActiveTaskController activeTaskController, IIdleTimeSummerFactory idleTimeSummerFactory) { this.activeTaskController = activeTaskController; idleTimeSummer = idleTimeSummerFactory.Create(this); SubscribeToActiveTaskEvents(); ExtractStartTime(timeBlocksModel); }
public ApplicationCaptionMediator(IMainViewModel mainViewModel, IActiveTaskController activeTaskController, ITasksModel tasksModel) { this.mainViewModel = mainViewModel; this.activeTaskController = activeTaskController; this.tasksModel = tasksModel; this.activeTaskController.ActiveTaskIdChanged += HandleActiveTaskIdChanged; CreateDefaultTitle(); }
public StatusBarViewModel( ITimeBlocksModel timeBlocksModel, IActiveTaskController activeTaskController, IIdleTimeSummerFactory idleTimeSummerFactory) { this.activeTaskController = activeTaskController; idleTimeSummer = idleTimeSummerFactory.Create(this); SubscribeToActiveTaskEvents(); ExtractStartTime(timeBlocksModel); }
public ApplicationCaptionMediator(IMainViewModel mainViewModel, IActiveTaskController activeTaskController, ITasksModel tasksModel) { this.mainViewModel = mainViewModel; this.activeTaskController = activeTaskController; this.tasksModel = tasksModel; this.activeTaskController.ActiveTaskIdChanged += HandleActiveTaskIdChanged; CreateDefaultTitle(); }
public StopTaskCommand(ITaskListViewModel taskListViewModel, IActiveTaskController activeTaskController) : base(taskListViewModel) { this.activeTaskController = activeTaskController; SubscribeToActiveTaskControllerEvents(); }
public TimeBlockMediator(IActiveTaskController activeTaskController, ITimeBlocksModel timeBlocksModel) { this.activeTaskController = activeTaskController; this.timeBlocksModel = timeBlocksModel; SubscribeToActiveTaskControllerEvents(); }
public TimeBlockMediator(IActiveTaskController activeTaskController, ITimeBlocksModel timeBlocksModel) { this.activeTaskController = activeTaskController; this.timeBlocksModel = timeBlocksModel; SubscribeToActiveTaskControllerEvents(); }
public StopTaskCommand(ITaskListViewModel taskListViewModel, IActiveTaskController activeTaskController) : base(taskListViewModel) { this.activeTaskController = activeTaskController; SubscribeToActiveTaskControllerEvents(); }