12345678910111213141516171819202122232425262728293031323334353637 |
- using Comal.Classes;
- using InABox.DynamicGrid;
- using InABox.Wpf;
- using PRSDesktop.Components.Spreadsheet;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PRSDesktop;
- public static class ManufacturingSetupActions
- {
- public static void Standard(IPanelHost host)
- {
- host.CreateSetupActionIf<CanViewFactorySettings>("Factory Settings", PRSDesktop.Resources.factorysetup, (action) =>
- {
- var list = new MasterList(typeof(ManufacturingFactory));
- list.ShowDialog();
- });
- host.CreateSetupActionIfCanView<ManufacturingTemplate>("Manufacturing Templates", PRSDesktop.Resources.template, (action) =>
- {
- var list = new MasterList(typeof(ManufacturingTemplate), "Factory.Name", null, true);
- list.ShowDialog();
- });
- host.CreateSetupActionIfCanView<ManufacturingTrolley>("Manufacturing Trolleys", PRSDesktop.Resources.trolley, (action) =>
- {
- var list = new MasterList(typeof(ManufacturingTrolley));
- list.ShowDialog();
- });
- host.CreateSetupActionIfCanView<ManufacturingLostTime>("Lost Time Types", PRSDesktop.Resources.smiley, (action) =>
- {
- var list = new MasterList(typeof(ManufacturingLostTime));
- list.ShowDialog();
- });
- }
- }
|