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 ProjectSetupActions { public static void JobStatuses(IPanelHost host) { host.CreateSetupActionIfCanView("Job Statuses", PRSDesktop.Resources.view, (action) => { var list = new MasterList(typeof(JobStatus)); list.ShowDialog(); }); } public static void DocumentMilestones(IPanelHost host) { host.CreateSetupAction("Document MileStones", PRSDesktop.Resources.revision, (action) => { var list = new MasterList(typeof(JobDocumentSetMileStoneType)); list.ShowDialog(); }); } public static void JobScopeStatuses(IPanelHost host) { host.CreateSetupActionIfCanView("Job Scope Statuses", PRSDesktop.Resources.view, (action) => { var list = new MasterList(typeof(JobScopeStatus)); list.ShowDialog(); }); } public static void DrawingTemplates(IPanelHost host) { host.CreateSetupAction("Drawing Templates", PRSDesktop.Resources.doc_misc, (action) => { var list = new MasterList(typeof(DrawingTemplate)); list.ShowDialog(); }); } public static void JobSpreadsheetTemplates(IPanelHost host) { host.CreateSetupActionIfCanView("Spreadsheet Templates", PRSDesktop.Resources.box, (action) => { SpreadsheetTemplateGrid.ViewSpreadsheetTemplates(); }); } public static void SetoutGroups(IPanelHost host) { host.CreateSetupActionIf("Setout Groups", PRSDesktop.Resources.draw, (action) => { var list = new MasterList(typeof(SetoutGroup)); list.ShowDialog(); }); } }