public MainWindowVM(ITenantDBsDir tenantDBsDir) : base(tenantDBsDir) { AdHocJobsCmds = new AdHocJobCmdsVM(this); ExportToExcelCmd = R2Command.Relay(() => ToExcelRequested.Raise(), null, "Export to Excel"); Enlist("All Active Leases", _ => new AllActiveLeasesVM(this, _)); Enlist("All Terminated Leases", _ => new AllInactiveLeasesVM(this, _)); Enlist("With Backrents or Overdue Rights", _ => new WithBackRentsOrRightsVM(this, _)); Enlist("Full Tenant Details", _ => new FullTenantDetailsVM(this, _)); Enlist("Upcoming Birthdays", _ => new UpcomingBirthdaysVM(this, _)); //todo: "Leases Nearing Rights Expiry" }
public MainWindowVM(ITenantDBsDir tenantDBsDir, bool clickRefresh = true) : base(tenantDBsDir) { DateRange = new DateRangePickerVM(this); BankAcctPicker = new BankAccountPickerVM(this, clickRefresh); VoucherReqs = new VoucherReqsTabVM(this); DcdrReport = new DcdrTabVM(this); Journals = new JournalsTabVM(this); AllChkVouchers = new AllVoucherRequestsVM(this); AdHocJobs = new AdHocJobCmdsVM(this); PrintCmd.SetLabel("Print “Pending Checks” List"); }