JobResourcePlannerPanel.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. namespace PRSDesktop
  7. {
  8. public class JobResourcePlannerPanel : JobResourcePlanner, IPanel<Job>
  9. {
  10. public JobResourcePlannerPanel() : base()
  11. {
  12. SectionName = nameof(JobResourcePlannerPanel);
  13. LoadSettings += (sender) => new UserConfiguration<JobResourcePlannerProperties>(nameof(JobResourcePlannerPanel)).Load();
  14. SaveSettings += (sender,properties) => new UserConfiguration<JobResourcePlannerProperties>(nameof(JobResourcePlannerPanel)).Save(properties);
  15. }
  16. public string SectionName { get; }
  17. public event DataModelUpdateEvent? OnUpdateDataModel;
  18. public bool IsReady { get; set; }
  19. public void CreateToolbarButtons(IPanelHost host)
  20. {
  21. }
  22. public DataModel DataModel(Selection selection)
  23. {
  24. return new AutoDataModel<Assignment>(null);
  25. }
  26. public Dictionary<string, object[]> Selected()
  27. {
  28. return new();
  29. }
  30. public void Heartbeat(TimeSpan time)
  31. {
  32. }
  33. }
  34. }