StockForecastPanel.cs 1.1 KB

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