Пример #1
0
 public StatusBarViewModel(
     ITimeBlocksModel timeBlocksModel, IActiveTaskController activeTaskController, IIdleTimeSummerFactory idleTimeSummerFactory)
 {
     this.activeTaskController = activeTaskController;
     idleTimeSummer = idleTimeSummerFactory.Create(this);
     SubscribeToActiveTaskEvents();
     ExtractStartTime(timeBlocksModel);
 }
Пример #2
0
 public StatusBarViewModel(
     ITimeBlocksModel timeBlocksModel, IActiveTaskController activeTaskController, IIdleTimeSummerFactory idleTimeSummerFactory)
 {
     this.activeTaskController = activeTaskController;
     idleTimeSummer            = idleTimeSummerFactory.Create(this);
     SubscribeToActiveTaskEvents();
     ExtractStartTime(timeBlocksModel);
 }
Пример #3
0
 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;
 }
Пример #4
0
 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;
 }
Пример #5
0
 void ExtractStartTime(ITimeBlocksModel timeBlocksModel)
 {
     DayStartTime = timeBlocksModel.GetAll().Select(t => t.Start.ToLocalTime()).FirstOrDefault(d => d.Date == DateTime.Today);
 }
Пример #6
0
 public TimeBlockMediator(IActiveTaskController activeTaskController, ITimeBlocksModel timeBlocksModel)
 {
     this.activeTaskController = activeTaskController;
     this.timeBlocksModel      = timeBlocksModel;
     SubscribeToActiveTaskControllerEvents();
 }
Пример #7
0
 public TimeBlockMediator(IActiveTaskController activeTaskController, ITimeBlocksModel timeBlocksModel)
 {
     this.activeTaskController = activeTaskController;
     this.timeBlocksModel = timeBlocksModel;
     SubscribeToActiveTaskControllerEvents();
 }
Пример #8
0
 public EditTimeBlockViewModel(Guid timeBlockId, ITimeBlocksModel timeBlocksModel)
 {
     this.timeBlocksModel   = timeBlocksModel;
     timeBlock              = timeBlocksModel.Get(timeBlockId);
     UpdateTimeBlockCommand = new RelayCommand(UpdateTimeBlockExecute, CanExecuteUpdateTimeBlock);
 }
Пример #9
0
 protected TimeSummerBase(ITimeBlocksModel timeBlocksModel, ITimer timer)
 {
     this.TimeBlocksModel = timeBlocksModel;
     this.timer = timer;
     timer.Subscribe(this);
 }
Пример #10
0
 public EditTimeBlockViewModel(Guid timeBlockId, ITimeBlocksModel timeBlocksModel)
 {
     this.timeBlocksModel = timeBlocksModel;
     timeBlock = timeBlocksModel.Get(timeBlockId);
     UpdateTimeBlockCommand = new RelayCommand(UpdateTimeBlockExecute, CanExecuteUpdateTimeBlock);
 }
Пример #11
0
 void ExtractStartTime(ITimeBlocksModel timeBlocksModel)
 {
     DayStartTime = timeBlocksModel.GetAll().Select(t => t.Start.ToLocalTime()).FirstOrDefault(d => d.Date == DateTime.Today);
 }
Пример #12
0
 public TotalTimeSummer(ITaskListItemViewModel taskListItemViewModel, ITimeBlocksModel timeBlocksModel, ITimer timer)
     : base(taskListItemViewModel, timeBlocksModel, timer)
 {
 }
Пример #13
0
 public TodayTimeSummer(ITaskListItemViewModel taskListItemViewModel, ITimeBlocksModel timeBlocksModel, ITimer timer)
     : base(taskListItemViewModel, timeBlocksModel, timer)
 {
 }
Пример #14
0
 public IdleTimeSummer(IStatusBarViewModel statusBarViewModel, ITimeBlocksModel timeBlocksModel, ITimer timer)
     : base(timeBlocksModel, timer)
 {
     this.statusBarViewModel = statusBarViewModel;
 }
Пример #15
0
 protected TimeSummerBase(ITimeBlocksModel timeBlocksModel, ITimer timer)
 {
     this.TimeBlocksModel = timeBlocksModel;
     this.timer           = timer;
     timer.Subscribe(this);
 }
Пример #16
0
 protected TaskItemTimeSummerBase(ITaskListItemViewModel taskListItemViewModel, ITimeBlocksModel timeBlocksModel, ITimer timer)
     : base(timeBlocksModel, timer)
 {
     TaskListItemViewModel = taskListItemViewModel;
 }
Пример #17
0
 public IdleTimeSummer(IStatusBarViewModel statusBarViewModel, ITimeBlocksModel timeBlocksModel, ITimer timer)
     : base(timeBlocksModel, timer)
 {
     this.statusBarViewModel = statusBarViewModel;
 }
Пример #18
0
 protected TaskItemTimeSummerBase(ITaskListItemViewModel taskListItemViewModel, ITimeBlocksModel timeBlocksModel, ITimer timer)
     : base(timeBlocksModel, timer)
 {
     TaskListItemViewModel = taskListItemViewModel;
 }