From 2b98f7bc90f01acc4d22c4d02dbd4212dfb8a4cb Mon Sep 17 00:00:00 2001 From: Stoyan Zlatev Date: Wed, 2 Apr 2025 15:21:34 +0200 Subject: [PATCH] just commit laa_packages + frmMainForm --- Common/.vs/config/applicationhost.config | 2 +- Common/LaaPackages | 2 +- Common/Ui/GenesisToolBox/frmMainForm.cs | 30 +++++++++++++----------- LaaProductionWeb/LaaPackages | 1 - 4 files changed, 18 insertions(+), 17 deletions(-) delete mode 160000 LaaProductionWeb/LaaPackages diff --git a/Common/.vs/config/applicationhost.config b/Common/.vs/config/applicationhost.config index 883679a3..a894c3cf 100644 --- a/Common/.vs/config/applicationhost.config +++ b/Common/.vs/config/applicationhost.config @@ -155,7 +155,7 @@ - + diff --git a/Common/LaaPackages b/Common/LaaPackages index e7aa3e27..ce1dc260 160000 --- a/Common/LaaPackages +++ b/Common/LaaPackages @@ -1 +1 @@ -Subproject commit e7aa3e2723a435f0a714df661dc5d86dfd45a71c +Subproject commit ce1dc26047374fd7a9328914a6c2bd7eb591f012 diff --git a/Common/Ui/GenesisToolBox/frmMainForm.cs b/Common/Ui/GenesisToolBox/frmMainForm.cs index 452de081..6f979afd 100644 --- a/Common/Ui/GenesisToolBox/frmMainForm.cs +++ b/Common/Ui/GenesisToolBox/frmMainForm.cs @@ -1,4 +1,7 @@ -namespace Xylem.Common.Ui.GenesisToolBox +using Xylem.Common.Ui.GenesisToolBox.Ctls; +using Xylem.Common.Ui.GenesisToolBox.Infrastructure; + +namespace Xylem.Common.Ui.GenesisToolBox { using global::GenesisToolBox; @@ -9,8 +12,6 @@ using System.Windows.Forms; using CommonCore.Consts; - using Ctls; - using Infrastructure; using Utils.Logging; using System.Collections.Generic; @@ -27,8 +28,8 @@ InitializeComponent(); InitializeFormState(); - optionsMenuItem.Text = Software.UserName; - Text = $"{Text} {SoftwareVersion.Current.VersionString}"; + menuItemOptions.Text = Software.UserName; + Text = $@"{Text} {SoftwareVersion.Current.VersionString}"; var logger = NLogHelper.CreateOrGetLogger("GenesisToolBox"); logger.Info($"GenesisToolBox {SoftwareVersion.Current}"); @@ -89,9 +90,8 @@ } catch (Exception ex) { - MessageBox.Show("GenesisToolBox\n\n" + - "Starting in OfflineMode\n\n" + - "Your version (NA) could not be verified!\n\n" + + MessageBox.Show(@"GenesisToolBox\n\n" + + @"Network Connection Error!\n\n" + ex.Message); Close(); @@ -107,8 +107,8 @@ } if (!access) { - MessageBox.Show("GenesisToolBox\n\n" + - "Your version licence is expired!\n\n" + + MessageBox.Show(@"GenesisToolBox\n\n" + + @"Your version licence is expired!\n\n" + SoftwareVersion.Current); Close(); @@ -304,7 +304,7 @@ private void btnLegacyTestApp_Click(Object sender, EventArgs e) { - var form = new FrmManCalibration(); + var form = new FrmLegacyTestApp(); form.Show(); form.Closed += Form_Closed; Hide(); @@ -419,7 +419,9 @@ /// private void SetSoftwareFunctions() { - changePassword.Enabled = Software.IsAutenticated; + menuItemChangePwd.Enabled = Software.IsAutenticated; + menuItemLogout.Enabled = Software.IsAutenticated; + menuItemLogin.Enabled = !Software.IsAutenticated; btnSetup.Tag = SoftwareFunctions.GENERAL_SETUP; btnAlarm.Tag = SoftwareFunctions.GENERAL_ALARM; @@ -452,7 +454,7 @@ Controls.Add(new Label() { Dock = DockStyle.Fill, - Text = "Genesis toolbox is currently not available.", + Text = @"Genesis toolbox is currently not available.", TextAlign = ContentAlignment.MiddleCenter, Font = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Bold), ForeColor = Color.DarkRed, @@ -496,7 +498,7 @@ } } - optionsMenuItem.Text = Software.UserName; + menuItemOptions.Text = Software.UserName; } private void ShowAvailableMenuItems(ToolStripMenuItem toolStripMenuItem) diff --git a/LaaProductionWeb/LaaPackages b/LaaProductionWeb/LaaPackages deleted file mode 160000 index e7aa3e27..00000000 --- a/LaaProductionWeb/LaaPackages +++ /dev/null @@ -1 +0,0 @@ -Subproject commit e7aa3e2723a435f0a714df661dc5d86dfd45a71c