CalendarSettings.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using Comal.Classes;
  3. using InABox.Configuration;
  4. namespace PRSDesktop
  5. {
  6. public class CalendarSettings : IUserConfigurationSettings, IDashboardProperties
  7. {
  8. public bool AlwaysStartOnToday { get; set; } = false;
  9. public CalendarViewType CalendarView { get; set; }
  10. public DateTime Date { get; set; }
  11. public EmployeeSelectorSettings EmployeeSelector { get; set; }
  12. public CalendarAssignmentType AssignmentType { get; set; }
  13. public CalendarBackgroundType BackgroundType { get; set; }
  14. public int StartHour { get; set; }
  15. public int EndHour { get; set; }
  16. public double Zoom { get; set; }
  17. public CalendarTimeInterval TimeInterval { get; set; }
  18. public CalendarSettingsVisibility SettingsVisible { get; set; }
  19. public EmployeeSelectorData EmployeeSelection { get; set; }
  20. public CalendarSettings()
  21. {
  22. Date = DateTime.Today;
  23. CalendarView = CalendarViewType.Day;
  24. EmployeeSelector = new EmployeeSelectorSettings();
  25. EmployeeSelection = new EmployeeSelectorData();
  26. AssignmentType = CalendarAssignmentType.Booked;
  27. BackgroundType = CalendarBackgroundType.Roster;
  28. StartHour = 5;
  29. EndHour = 18;
  30. Zoom = 100;
  31. SettingsVisible = CalendarSettingsVisibility.Hidden;
  32. }
  33. }
  34. }