CalendarPanel.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System;
  2. using System.Collections.Generic;
  3. using Comal.Classes;
  4. using InABox.Configuration;
  5. using InABox.Core;
  6. namespace PRSDesktop
  7. {
  8. public class CalendarPanel : Calendar, IPanel<Assignment>
  9. {
  10. public string SectionName { get; }
  11. public CalendarPanel() : base()
  12. {
  13. SectionName = "Calendar";
  14. LoadSettings += (sender) => new UserConfiguration<CalendarSettings>(nameof(CalendarPanel)).Load();
  15. SaveSettings += (sender,properties) => new UserConfiguration<CalendarSettings>(nameof(CalendarPanel)).Save(properties);
  16. }
  17. public event DataModelUpdateEvent? OnUpdateDataModel;
  18. public void CreateToolbarButtons(IPanelHost host)
  19. {
  20. }
  21. public Dictionary<string, object[]> Selected()
  22. {
  23. return new Dictionary<string, object[]>();
  24. }
  25. public void Heartbeat(TimeSpan time)
  26. {
  27. }
  28. public override void Setup()
  29. {
  30. base.Setup();
  31. }
  32. public override void Shutdown()
  33. {
  34. base.Shutdown();
  35. }
  36. public override void Refresh()
  37. {
  38. base.Refresh();
  39. }
  40. }
  41. }