CalendarSettings.cs 1.4 KB

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