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("Factory Settings", PRSDesktop.Resources.factorysetup, (action) => { var list = new MasterList(typeof(ManufacturingFactory)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Manufacturing Templates", PRSDesktop.Resources.template, (action) => { var list = new MasterList(typeof(ManufacturingTemplate), "Factory.Name", null, true); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Manufacturing Trolleys", PRSDesktop.Resources.trolley, (action) => { var list = new MasterList(typeof(ManufacturingTrolley)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Lost Time Types", PRSDesktop.Resources.smiley, (action) => { var list = new MasterList(typeof(ManufacturingLostTime)); list.ShowDialog(); }); } }