From 45aeb808fa64667bd7eff87d94c0e766771d71ed Mon Sep 17 00:00:00 2001 From: Paul Larsen Date: Thu, 20 Mar 2025 17:06:28 -0400 Subject: [PATCH] C2024-041-Disable-UCF-(User-Control-of-Format)-options-2 --- PROMS/VEPROMS User Interface/frmVEPROMS.cs | 31 ++++++++++++++++++---- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/PROMS/VEPROMS User Interface/frmVEPROMS.cs b/PROMS/VEPROMS User Interface/frmVEPROMS.cs index 0b4d1e64..9c78ae63 100644 --- a/PROMS/VEPROMS User Interface/frmVEPROMS.cs +++ b/PROMS/VEPROMS User Interface/frmVEPROMS.cs @@ -2118,24 +2118,45 @@ namespace VEPROMS InitializeSecurity(); UpdateUser(); + //btnSecurity = new ButtonItem("btnSecurity", "Security"); // C2019-002: move security & format items into submenus + //btnFormats = new ButtonItem("btnFormats", "Formats"); + //btnAdmin.SubItems.Add(btnSecurity); + //btnAdmin.SubItems.Add(btnFormats); + //btnUserControlOfFormats = new ButtonItem("btnUserControlOfFormats", "User Control of Formats"); + //btnFormats.SubItems.Add(btnUpdateFormats); + //btnFormats.SubItems.Add(btnUserControlOfFormats); + //btnUserControlOfFormats.Click += new EventHandler(btnUserControlOfFormats_Click); + //btnUserControlOfFormatsExport = new ButtonItem("btnUserControlOfFormatsExport", "Export User Control of Formats"); + //btnFormats.SubItems.Add(btnUserControlOfFormatsExport); + //btnUserControlOfFormatsExport.Click += new EventHandler(btnUserControlOfFormatsExport_Click); + //btnUserControlOfFormatsImport = new ButtonItem("btnUserControlOfFormatsImport", "Import User Control of Formats"); + //btnFormats.SubItems.Add(btnUserControlOfFormatsImport); + //btnUserControlOfFormatsImport.Click += new EventHandler(btnUserControlOfFormatsImport_Click); + //btnManageSecurity = new ButtonItem("btnManageSecurity", "Manage Security"); + //btnSecurity.SubItems.Add(btnManageSecurity); + //btnManageSecurity.Click += new EventHandler(btnManageSecurity_Click); + + btnSecurity = new ButtonItem("btnSecurity", "Security"); // C2019-002: move security & format items into submenus btnFormats = new ButtonItem("btnFormats", "Formats"); btnAdmin.SubItems.Add(btnSecurity); - btnAdmin.SubItems.Add(btnFormats); + // btnAdmin.SubItems.Add(btnFormats); // C2024 - 041 remove from Admin(V button) menu + btnAdmin.SubItems.Add(btnUpdateFormats); // C2024 - 041 remove from Admin(V button) menu btnUserControlOfFormats = new ButtonItem("btnUserControlOfFormats", "User Control of Formats"); - btnFormats.SubItems.Add(btnUpdateFormats); - btnFormats.SubItems.Add(btnUserControlOfFormats); + //btnFormats.SubItems.Add(btnUpdateFormats); + //btnFormats.SubItems.Add(btnUserControlOfFormats); // C2024-041 remove from Admin (V button) menu btnUserControlOfFormats.Click += new EventHandler(btnUserControlOfFormats_Click); btnUserControlOfFormatsExport = new ButtonItem("btnUserControlOfFormatsExport", "Export User Control of Formats"); - btnFormats.SubItems.Add(btnUserControlOfFormatsExport); + //btnFormats.SubItems.Add(btnUserControlOfFormatsExport); // C2024-041 remove from Admin (V button) menu btnUserControlOfFormatsExport.Click += new EventHandler(btnUserControlOfFormatsExport_Click); btnUserControlOfFormatsImport = new ButtonItem("btnUserControlOfFormatsImport", "Import User Control of Formats"); - btnFormats.SubItems.Add(btnUserControlOfFormatsImport); + //btnFormats.SubItems.Add(btnUserControlOfFormatsImport); // C2024-041 remove from Admin (V button) menu btnUserControlOfFormatsImport.Click += new EventHandler(btnUserControlOfFormatsImport_Click); btnManageSecurity = new ButtonItem("btnManageSecurity", "Manage Security"); btnSecurity.SubItems.Add(btnManageSecurity); btnManageSecurity.Click += new EventHandler(btnManageSecurity_Click); + //added by jcb: menu item to reset security requires password to implement btnResetSecurity = new ButtonItem("btnResetSecurity", "Reset Security"); btnSecurity.SubItems.Add(btnResetSecurity);