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"); }
public void ComputeEndDate() { DueDate = ReportDate.AddDays(7); }