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}"); }
public static void Launch(SectionColxnsRow row, ITenantDBsDir dir) => new SectionRowInspectorVM(row, dir).Show <SectionRowInspectorWindow>();