EquipmentPlannerPanel.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. using Microsoft.Exchange.WebServices.Data;
  8. namespace PRSDesktop
  9. {
  10. public class EquipmentPlannerPanel : EquipmentPlanner, IPanel<Assignment>
  11. {
  12. public EquipmentPlannerPanel()
  13. {
  14. SectionName = nameof(EquipmentPlannerPanel);
  15. LoadSettings += (sender) => new UserConfiguration<EquipmentPlannerProperties>(nameof(EquipmentPlannerPanel)).Load();
  16. SaveSettings += (sender, properties) => new UserConfiguration<EquipmentPlannerProperties>(nameof(EquipmentPlannerPanel)).Save(properties);
  17. }
  18. public string SectionName { get; }
  19. public DataModel DataModel(Selection selection)
  20. {
  21. return new AutoDataModel<Assignment>(new Filter<Assignment>(x=>x.ID).IsEqualTo(Guid.Empty));
  22. }
  23. public event DataModelUpdateEvent? OnUpdateDataModel;
  24. public bool IsReady { get; set; }
  25. public void CreateToolbarButtons(IPanelHost host)
  26. {
  27. EquipmentSetupActions.TrackerTypes(host);
  28. EquipmentSetupActions.WebStickers(host);
  29. EquipmentSetupActions.DigitalKeys(host);
  30. EquipmentSetupActions.EquipmentGroups(host);
  31. }
  32. public Dictionary<string, object[]> Selected()
  33. {
  34. return new Dictionary<string, object[]>();
  35. }
  36. }
  37. }