Exemple #1
0
 public NewDaySheetViewModel(IViewModelProvider viewModelProvider, IPlannerViewModel parentViewModel, IDaySummaryViewModel selectedDay)
 {
     _timeAvailable     = selectedDay.TimeSpent;
     _timeSpent         = selectedDay.TimeSpent;
     _tasks             = selectedDay.Tasks;
     _viewModelProvider = viewModelProvider;
     _parentViewModel   = parentViewModel;
 }
Exemple #2
0
 public NewDaySheetViewModel(IViewModelProvider viewModelProvider, IPlannerViewModel parentViewModel, DateTime date, string timeAvailable, string timeSpent, List <ITaskViewModel> tasks)
 {
     _timeAvailable     = timeSpent;
     _timeSpent         = timeSpent;
     _tasks             = new ObservableCollection <ITaskViewModel>(tasks);
     _viewModelProvider = viewModelProvider;
     _parentViewModel   = parentViewModel;
 }
Exemple #3
0
 public DayCRUDViewModel(IViewModelProvider viewModelProvider, IPlannerViewModel parent, IDaySummaryViewModel selectedDay)
 {
     _viewModelProvider = viewModelProvider;
     _date          = selectedDay.DisplayDate;
     _timeAvailable = selectedDay.TimeAvailable;
     _timeSpent     = selectedDay.TimeSpent;
     _tasks         = selectedDay.Tasks;
     _parent        = parent;
 }
Exemple #4
0
 public INewDaySheetViewModel GetNewDaySummaryViewModel(IPlannerViewModel parent)
 {
     return(new NewDaySheetViewModel(this, parent, DateTime.Now.Date, string.Empty, string.Empty, new List <ITaskViewModel> {
         GetTaskModel(string.Empty), GetTaskModel(string.Empty), GetTaskModel(string.Empty)
     }));
 }
Exemple #5
0
 public IDayCRUDViewModel GetDayCRUDViewModel(IPlannerViewModel plannerViewModel, IDaySummaryViewModel day)
 {
     return(new DayCRUDViewModel(this, plannerViewModel, day));
 }