CalendarPanel.cs 1.2 KB

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