From a2f86625be97c28fa81a94b0a435c673f6007a44 Mon Sep 17 00:00:00 2001 From: Bradley Born Date: Mon, 20 Oct 2025 10:31:58 +0100 Subject: [PATCH 1/2] Final Changes to Stats Excel - This has been tested via Fake Cam Test all scenearios and published and tested --- AiQ_GUI.cs | 132 +++++++++++++++-------------- Microsoft/StatsExcel.cs | 179 ++++++++++++++++++++++++---------------- 2 files changed, 171 insertions(+), 140 deletions(-) diff --git a/AiQ_GUI.cs b/AiQ_GUI.cs index 513bb38..6fe65bc 100644 --- a/AiQ_GUI.cs +++ b/AiQ_GUI.cs @@ -42,7 +42,7 @@ namespace AiQ_GUI Stopwatch stopwatch = Stopwatch.StartNew(); Task? closeProcessesTask = Windows.CloseProcesses(); // Fire and forget closing other apps - //Windows.UpdateFirewall(); + Windows.UpdateFirewall(); Task UniDataTask = Task.Run(() => Access.ReadUniData()); // Get universal data Task LDSWAIT = Task.Run(() => LDS.GetLDS()); // Get and deserialise LDS.json Task guiVerTask = Task.Run(() => GUIUpdate.FindGUIVersion()); // Get GUI Version @@ -108,7 +108,7 @@ namespace AiQ_GUI CbBxIris.SelectedIndex = lds.Iris; CbBxGain.SelectedIndex = lds.Gain; - if (lds.User == "Bradley") + if (lds.User == "Bradley" || lds.User == "Sophie") BtnTest.Visible = true; TxBxCheckValid(TxBxPsuIP); // Set save button color if valid @@ -151,7 +151,7 @@ namespace AiQ_GUI if (!await FlexiAPI.ZoomModules("1F40", CamOnTest.IP)) // Zoom to 8000 (1F40h) at the same time. await TestFailed(BtnStartTest, "Could not zoom modules to 8000"); - + if (!await FlexiAPI.SetZoomLockOn(CamOnTest.IP)) Helper.RestartApp(); @@ -194,7 +194,7 @@ namespace AiQ_GUI await FlexiAPI.SetTrim(CamOnTest.IP, LblTestTubePing.Text); // Auto trims the cameras, some plates should have been captured in the meantime if (!await FlexiAPI.ZoomModules("0000", CamOnTest.IP)) // Zoom to full wide - { + { await TestFailed(BtnStartTest, "Could not zoom modules to full wide"); } @@ -224,7 +224,7 @@ namespace AiQ_GUI LED.CheckLEDs(DiagsAPI.LedCurrent, LblLEDI, "mA", CameraAccessInfo.LED_I); // Current this.Refresh(); // Make sure all labels are updated before checking them - + // If there are any actions identified then fail the test. // If any labels are red then fail. Only labels in panel so can foreach on labels not controls if (RhTxBxActions.Text.Length > 2 || PnlLbls.Controls.OfType