using Comal.Classes; using InABox.Core; 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 ProductSetupActions { public static void Standard(IPanelHost host) { host.CreateSetupActionIfCanView("Product Dimensions", PRSDesktop.Resources.unitofmeasure, (action) => { var list = new MasterList(typeof(ProductDimensionUnit)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Product Groups", PRSDesktop.Resources.productgroup, (action) => { var list = new MasterList(typeof(ProductGroup)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Product Styles", PRSDesktop.Resources.palette, (action) => { var list = new MasterList(typeof(ProductStyle)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Treatment Types", PRSDesktop.Resources.palette, (action) => { var list = new MasterList(typeof(TreatmentType)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Stock Areas", PRSDesktop.Resources.rack, (action) => { var list = new MasterList(typeof(StockArea)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Stock Warehouses", PRSDesktop.Resources.factorysetup, (action) => { var list = new MasterList(typeof(StockWarehouse)); list.ShowDialog(); }); } public static void ProductSpreadsheetTemplates(IPanelHost host) { host.CreateSetupActionIfCanView("Spreadsheet Templates", PRSDesktop.Resources.box, (action) => { SpreadsheetTemplateGrid.ViewSpreadsheetTemplates(); }); } }