public NewDaySheetViewModel(IViewModelProvider viewModelProvider, IPlannerViewModel parentViewModel, IDaySummaryViewModel selectedDay) { _timeAvailable = selectedDay.TimeSpent; _timeSpent = selectedDay.TimeSpent; _tasks = selectedDay.Tasks; _viewModelProvider = viewModelProvider; _parentViewModel = parentViewModel; }
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; }
public DayCRUDViewModel(IViewModelProvider viewModelProvider, IPlannerViewModel parent, IDaySummaryViewModel selectedDay) { _viewModelProvider = viewModelProvider; _date = selectedDay.DisplayDate; _timeAvailable = selectedDay.TimeAvailable; _timeSpent = selectedDay.TimeSpent; _tasks = selectedDay.Tasks; _parent = parent; }
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) })); }
public IDayCRUDViewModel GetDayCRUDViewModel(IPlannerViewModel plannerViewModel, IDaySummaryViewModel day) { return(new DayCRUDViewModel(this, plannerViewModel, day)); }