コード例 #1
0
ファイル: StatusBarViewModel.cs プロジェクト: pjquirk/timely
 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
ファイル: TimeBlockMediator.cs プロジェクト: pjquirk/timely
 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
ファイル: TimeSummerBase.cs プロジェクト: pjquirk/timely
 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
ファイル: StatusBarViewModel.cs プロジェクト: pjquirk/timely
 void ExtractStartTime(ITimeBlocksModel timeBlocksModel)
 {
     DayStartTime = timeBlocksModel.GetAll().Select(t => t.Start.ToLocalTime()).FirstOrDefault(d => d.Date == DateTime.Today);
 }
コード例 #12
0
ファイル: TotalTimeSummer.cs プロジェクト: pjquirk/timely
 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
ファイル: IdleTimeSummer.cs プロジェクト: joshmgross/timely
 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
ファイル: IdleTimeSummer.cs プロジェクト: pjquirk/timely
 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;
 }