Example #1
0
 public ActiveLeasesVM(AppArguments appArguments) : base(appArguments.MarketState.ActiveLeases, appArguments, false)
 {
     Crud = new LeaseCrudVM(AppArgs.MarketState.ActiveLeases, AppArgs);
     AddStallToTenantCmd   = R2Command.Relay(AddStallToTenant, _ => Crud.CanEncodeNewDraft(), "Add another Stall to this Tenant");
     EditThisLeaseCmd      = R2Command.Relay(EditThisLease, _ => CanEditRecord(Rows.CurrentItem?.DTO), "Edit this Lease");
     EditTenantInfoCmd     = R2Command.Relay(EditThisLease, _ => AppArgs.CanEditTenantInfo(false), "Edit Tenant Info");
     TerminateThisLeaseCmd = R2Command.Relay(TerminateThisLease, _ => AppArgs.CanTerminateteLease(false), "Terminate this Lease");
 }