public StatusBarViewModel( ITimeBlocksModel timeBlocksModel, IActiveTaskController activeTaskController, IIdleTimeSummerFactory idleTimeSummerFactory) { this.activeTaskController = activeTaskController; idleTimeSummer = idleTimeSummerFactory.Create(this); SubscribeToActiveTaskEvents(); ExtractStartTime(timeBlocksModel); }
public EditTimeBlocksViewModel( Guid taskId, ITimeBlocksModel timeBlocksModel, ITimeBlockListItemViewModelFactory timeBlockListItemViewModelFactory, IViewFactory <IEditTimeBlockView> editTimeBlockViewFactory, IEditTimeBlockViewModelFactory editTimeBlockViewModelFactory) { this.taskId = taskId; this.timeBlocksModel = timeBlocksModel; this.timeBlockListItemViewModelFactory = timeBlockListItemViewModelFactory; this.editTimeBlockViewFactory = editTimeBlockViewFactory; this.editTimeBlockViewModelFactory = editTimeBlockViewModelFactory; CreateCommands(); PopulateItems(); SubscribeToTimeBlocksModelEvents(); HideTimesBeforeToday = true; }
public EditTimeBlocksViewModel( Guid taskId, ITimeBlocksModel timeBlocksModel, ITimeBlockListItemViewModelFactory timeBlockListItemViewModelFactory, IViewFactory<IEditTimeBlockView> editTimeBlockViewFactory, IEditTimeBlockViewModelFactory editTimeBlockViewModelFactory) { this.taskId = taskId; this.timeBlocksModel = timeBlocksModel; this.timeBlockListItemViewModelFactory = timeBlockListItemViewModelFactory; this.editTimeBlockViewFactory = editTimeBlockViewFactory; this.editTimeBlockViewModelFactory = editTimeBlockViewModelFactory; CreateCommands(); PopulateItems(); SubscribeToTimeBlocksModelEvents(); HideTimesBeforeToday = true; }
void ExtractStartTime(ITimeBlocksModel timeBlocksModel) { DayStartTime = timeBlocksModel.GetAll().Select(t => t.Start.ToLocalTime()).FirstOrDefault(d => d.Date == DateTime.Today); }
public TimeBlockMediator(IActiveTaskController activeTaskController, ITimeBlocksModel timeBlocksModel) { this.activeTaskController = activeTaskController; this.timeBlocksModel = timeBlocksModel; SubscribeToActiveTaskControllerEvents(); }
public EditTimeBlockViewModel(Guid timeBlockId, ITimeBlocksModel timeBlocksModel) { this.timeBlocksModel = timeBlocksModel; timeBlock = timeBlocksModel.Get(timeBlockId); UpdateTimeBlockCommand = new RelayCommand(UpdateTimeBlockExecute, CanExecuteUpdateTimeBlock); }
protected TimeSummerBase(ITimeBlocksModel timeBlocksModel, ITimer timer) { this.TimeBlocksModel = timeBlocksModel; this.timer = timer; timer.Subscribe(this); }
public TotalTimeSummer(ITaskListItemViewModel taskListItemViewModel, ITimeBlocksModel timeBlocksModel, ITimer timer) : base(taskListItemViewModel, timeBlocksModel, timer) { }
public TodayTimeSummer(ITaskListItemViewModel taskListItemViewModel, ITimeBlocksModel timeBlocksModel, ITimer timer) : base(taskListItemViewModel, timeBlocksModel, timer) { }
public IdleTimeSummer(IStatusBarViewModel statusBarViewModel, ITimeBlocksModel timeBlocksModel, ITimer timer) : base(timeBlocksModel, timer) { this.statusBarViewModel = statusBarViewModel; }
protected TaskItemTimeSummerBase(ITaskListItemViewModel taskListItemViewModel, ITimeBlocksModel timeBlocksModel, ITimer timer) : base(timeBlocksModel, timer) { TaskListItemViewModel = taskListItemViewModel; }