EquipmentPlannerPanel.cs 1.4 KB

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