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