EmployeeResourcePlannerPanel.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 EmployeeResourcePlannerPanel : EmployeeResourcePlanner, IPanel<Assignment>
  10. {
  11. public EmployeeResourcePlannerPanel()
  12. {
  13. SectionName = nameof(EmployeeResourcePlannerPanel);
  14. LoadSettings += (sender) => new UserConfiguration<EmployeeResourcePlannerProperties>(nameof(EmployeeResourcePlannerPanel)).Load();
  15. SaveSettings += (sender, properties) => new UserConfiguration<EmployeeResourcePlannerProperties>(nameof(EmployeeResourcePlannerPanel)).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. }
  27. public Dictionary<string, object[]> Selected()
  28. {
  29. return new Dictionary<string, object[]>();
  30. }
  31. }
  32. }