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 QuoteSetupActions { public static void Standard(IPanelHost host) { host.CreateSetupActionIf("Status Codes", PRSDesktop.Resources.quotestatus, (action) => { var list = new MasterList(typeof(QuoteStatus)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Design Sections", PRSDesktop.Resources.design, (action) => { var list = new MasterList(typeof(QuoteDesignSection)); list.ShowDialog(); }); host.CreateSetupSeparator(); host.CreateSetupActionIfCanView("Kit Conditions", PRSDesktop.Resources.kitcondition, (action) => { var list = new MasterList(typeof(KitCondition)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Kit Formulae", PRSDesktop.Resources.kitformula, (action) => { var list = new MasterList(typeof(KitFormula)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Cost Sheet Types", PRSDesktop.Resources.costsheettype, (action) => { var list = new MasterList(typeof(CostSheetType)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Cost Sheet Brands", PRSDesktop.Resources.costsheetbrand, (action) => { var list = new MasterList(typeof(CostSheetBrand)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Cost Sheet Sections", PRSDesktop.Resources.costsheetsection, (action) => { var list = new MasterList(typeof(CostSheetSection)); list.ShowDialog(); }); host.CreateSetupSeparator(); host.CreateSetupActionIfCanView("Symbols", PRSDesktop.Resources.pencil, (action) => { var list = new MasterList(typeof(QuoteDiagramSymbol), "Section.Name"); list.ShowDialog(); QuoteDiagramSymbolCache.Refresh(); }); host.CreateSetupActionIfCanView("Symbol Types", PRSDesktop.Resources.attachment, (action) => { var list = new MasterList(typeof(QuoteDiagramSymbolSection)); list.ShowDialog(); QuoteDiagramSymbolCache.Refresh(); }); host.CreateSetupActionIfCanView("Dimension Types", PRSDesktop.Resources.box, (action) => { var list = new MasterList(typeof(QuoteTakeOffUnit)); list.ShowDialog(); }); host.CreateSetupSeparator(); host.CreateSetupActionIfCanView("Job Statuses", PRSDesktop.Resources.box, (action) => { SpreadsheetTemplateGrid.ViewSpreadsheetTemplates(); }); } }