KanbanFormModel.cs 670 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Linq;
  3. using Comal.Classes;
  4. using InABox.Core;
  5. using System.Diagnostics.CodeAnalysis;
  6. namespace comal.timesheets
  7. {
  8. public class KanbanFormModel : ListModel<KanbanFormModel, KanbanFormShell, KanbanForm>
  9. {
  10. public KanbanFormModel(IModelHost host, Func<Filter<KanbanForm>> filter, bool transient = false) : base(host, filter, transient)
  11. {
  12. }
  13. public KanbanFormModel(IModelHost host, Func<Filter<KanbanForm>> filter, [NotNull] string filename) : base(host, filter, filename)
  14. {
  15. }
  16. public IDigitalFormInstanceShell[] Forms => Items.OfType<IDigitalFormInstanceShell>().ToArray();
  17. }
  18. }