IMasterDetailControl.cs 512 B

1234567891011121314151617
  1. using System.Diagnostics.CodeAnalysis;
  2. using InABox.Core;
  3. namespace InABox.Wpf;
  4. public interface IMasterDetailControl<TMaster>
  5. {
  6. TMaster? Master { get; set; }
  7. }
  8. public interface IMasterDetailControl<TMaster,TDetail> : IMasterDetailControl<TMaster>
  9. {
  10. // If Master == null, then Master Detail is not active,
  11. // and we should return .All() or .None() depending on circumstances
  12. // If Master != null, we need to filter by Master.ID (usually?)
  13. Filter<TDetail> MasterDetailFilter { get; }
  14. }