1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- using System;
- using InABox.Configuration;
- using InABox.Core;
- using InABox.DynamicGrid;
- namespace PRSDesktop;
- public enum KanbanViewType
- {
- Status,
- User,
- Planner,
- List
- }
- public abstract class KanbanSettingsSection
- {
- }
- public abstract class KanbanCardSettings : KanbanSettingsSection
- {
- public bool CompactView { get; set; } = false;
- public bool IncludeCompleted { get; set; } = false;
- public bool IncludeObserved { get; set; } = true;
- }
- public class KanbanStatusSettings : KanbanCardSettings
- {
- public Guid SelectedEmployee { get; set; } = Guid.Empty;
- public Guid SelectedType { get; set; } = CoreUtils.FullGuid;
- public bool IncludeLocked { get; set; } = true;
- }
- public class KanbanUserSettings : KanbanCardSettings
- {
- public double AnchorWidth { get; set; } = 300.0F;
- public double TeamsHeight { get; set; } = 200.0F;
- public Guid[] SelectedTeams { get; set; } = Array.Empty<Guid>();
- public Guid[] SelectedEmployees { get; set; } = Array.Empty<Guid>();
- public bool IncludeManaged { get; set; } = false;
- }
- public class KanbanPlannerSettings : KanbanSettingsSection
- {
- public Guid SelectedType { get; set; } = CoreUtils.FullGuid;
- public bool IncludeCompleted { get; set; } = false;
- }
- public class KanbanListSettings : KanbanSettingsSection
- {
- }
- public class KanbanSettings : IUserConfigurationSettings
- {
- public DynamicGridSelectedFilterSettings Filters { get; set; } = new();
- public KanbanViewType ViewType { get; set; } = KanbanViewType.Status;
- public KanbanStatusSettings StatusSettings { get; set; } = new();
- public KanbanUserSettings UserSettings { get; set; } = new();
- public KanbanPlannerSettings PlannerSettings { get; set; } = new();
- public KanbanListSettings ListSettings { get; set; } = new();
- }
|