public SectionRowInspectorVM(SectionColxnsRow sectionColxnsRow, ITenantDBsDir dir) : base(dir) { MainRow = sectionColxnsRow; EditPRNumberCmd = R2Command.Relay(_ => EditPRNumber(_), _ => CanEditPRNumber(), "Edit PR Number"); MainRow.Details.ItemOpened += (s, e) => SoaViewer.Show(e.Lease, dir); SetCaption($"Collections from “{MainRow?.Section}” by {MainRow.Collector}"); }
protected override void OnItemOpened(LeaseDTO e) => SoaViewer.Show(e, AppArgs);
public LeasesListVM(MainWindowVM2 mainWindowVM2) { MainWindow = mainWindowVM2; this.ItemOpened += (s, e) => SoaViewer.Show(e.Lease, MainWindow.AppArgs); }
private void OnItemOpened(CollectorPerfSubRow e) { _dir.MarketState.RefreshStall(e.Lease); SoaViewer.Show(e.Lease, _dir); }
public WithOverduesReportVM(ITenantDBsDir appArguments) : base(appArguments) { Rows.ItemOpened += (s, e) => SoaViewer.Show(e.DTO, AppArgs); Sections.SetItems(GetSectionsList()); PickedSection = Sections.First(); }