| 1234567891011121314151617181920212223242526272829 |
- using System;
- using System.Diagnostics.CodeAnalysis;
- using System.Linq;
- using Comal.Classes;
- using InABox.Core;
- using InABox.Mobile;
- namespace PRS.Mobile
- {
- public abstract class BaseKanbanModel<TModel,TShell> : CoreRepository<TModel, TShell, Kanban>, IKanbanModel
- where TModel : CoreRepository<TModel, TShell, Kanban>
- where TShell : Shell<TModel, Kanban>, IKanbanShell, new()
- {
- protected BaseKanbanModel(IModelHost host, Func<Filter<Kanban>>? filter = null, Func<string>? cachefilename = null) : base(host, filter, cachefilename)
- {
- }
- IKanbanShell[] IKanbanModel.Items => this.Items.OfType<IKanbanShell>().ToArray();
- public override TShell CreateItem()
- {
- var result = base.CreateItem();
- result.Status = KanbanStatus.Open;
- result.ManagerID = App.Data.Me.ID;
- return result;
- }
- }
- }
|