using System; using System.Linq; using Comal.Classes; using InABox.Core; using InABox.Wpf; namespace PRSDesktop { public class JobSpreadsheetGrid : SpreadsheetGrid, IMasterDetailControl, IDataModelSource { public string SectionName => "Job Spreadsheets"; public DataModel DataModel(Selection selection) { var ids = ExtractValues(x => x.ID, selection).ToArray(); return new AutoDataModel(new Filter(x => x.ID).InList(ids)); } public event DataModelUpdateEvent? OnUpdateDataModel; } }