using System; using Comal.Classes; using InABox.Core; using InABox.DynamicGrid; namespace PRSDesktop; public class JobScopeKanbanGrid : DynamicDataGrid, IJobScopeGrid { public JobScope? Scope { get; set; } protected override void DoReconfigure(FluentList options) { base.DoReconfigure(options); options.Remove(DynamicGridOption.AddRows); } protected override void Reload(Filters criteria, Columns columns, ref SortOrder? sort, Action action) { if ((Scope == null) || (Scope.ID == Guid.Empty)) criteria.Add(new Filter(x => x.ID).None()); else criteria.Add(new Filter(x => x.JobScope.ID).IsEqualTo(Scope.ID)); base.Reload(criteria, columns, ref sort, action); } }