EquipmentSetupActions.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using Comal.Classes;
  2. using InABox.DynamicGrid;
  3. using InABox.Wpf;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace PRSDesktop;
  10. public static class EquipmentSetupActions
  11. {
  12. public static void TrackerTypes(IPanelHost host)
  13. {
  14. host.CreateSetupActionIfCanView<GPSTrackerType>("Tracker Types", PRSDesktop.Resources.milestone, TrackerTypes_Click);
  15. }
  16. private static void TrackerTypes_Click(PanelAction action)
  17. {
  18. var list = new MasterList(typeof(GPSTrackerType));
  19. list.ShowDialog();
  20. }
  21. public static void WebStickers(IPanelHost host)
  22. {
  23. host.CreateSetupActionIfCanView<WebSticker>("Stickers", PRSDesktop.Resources.barcode, Stickers_Click);
  24. }
  25. private static void Stickers_Click(PanelAction action)
  26. {
  27. var list = new MasterList(typeof(WebSticker));
  28. list.ShowDialog();
  29. }
  30. public static void DigitalKeys(IPanelHost host)
  31. {
  32. host.CreateSetupActionIfCanView<DigitalKey>("Digital Keys", PRSDesktop.Resources.key, DigitalKeys_Click);
  33. }
  34. private static void DigitalKeys_Click(PanelAction action)
  35. {
  36. var list = new MasterList(typeof(DigitalKey));
  37. list.ShowDialog();
  38. }
  39. public static void EquipmentGroups(IPanelHost host)
  40. {
  41. host.CreateSetupActionIfCanView<EquipmentGroup>("Equipment Groups", PRSDesktop.Resources.specifications, EquipmentGroupList_Click);
  42. }
  43. private static void EquipmentGroupList_Click(PanelAction action)
  44. {
  45. var list = new MasterList(typeof(EquipmentGroup));
  46. list.ShowDialog();
  47. }
  48. }