Example #1
0
 public DailyStatusReportVM(ITenantDBsDir dir) : base(dir)
 {
     MinDate         = dir.Collections.AllDates().First();
     MaxDate         = dir.Collections.LastPostedDate();
     ReportDate      = MaxDate;
     PreviousDateCmd = R2Command.Relay(() => ReportDate = ReportDate.AddDays(-1),
                                       _ => ReportDate > MinDate, "Previous Day");
     NextDateCmd = R2Command.Relay(() => ReportDate = ReportDate.AddDays(1),
                                   _ => ReportDate < MaxDate, "Next Day");
 }
Example #2
0
 public void ComputeEndDate()
 {
     DueDate = ReportDate.AddDays(7);
 }