diff --git a/AiQ_GUI.cs b/AiQ_GUI.cs index 15a5f64..ebac9dc 100644 --- a/AiQ_GUI.cs +++ b/AiQ_GUI.cs @@ -1,6 +1,9 @@ -using Newtonsoft.Json; +using AiQ_GUI.Microsoft; +using Newtonsoft.Json; using System.ComponentModel; +using System.Data.OleDb; using System.Diagnostics; +using System.Numerics; using System.Reflection; namespace AiQ_GUI @@ -25,6 +28,8 @@ namespace AiQ_GUI [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public static MainForm? Instance { get; private set; } + // For Access Stats + const string connString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=G:\Shared drives\MAV Production GUI's\AiQ\GUI's\AiQ_Final_Test.accdb;Persist Security Info=False;OLE DB Services=-1;"; public MainForm() { @@ -37,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 @@ -214,15 +219,87 @@ 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