Beginning of the Implementing multple cameras into the AiQ GUI

Features added:
- Onvif discoverable
- New Camera Type combo box
- Access has be changed to be more scalable and dynamic in preparation for more cameras
This commit is contained in:
2025-12-19 16:14:13 +00:00
parent 760987fa75
commit 7aba890514
18 changed files with 455 additions and 333 deletions

316
AiQ_GUI.Designer.cs generated
View File

@@ -32,7 +32,7 @@ namespace AiQ_GUI
{
components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
CbBxCameraType = new ComboBox();
CbBxCameraModel = new ComboBox();
BtnStartTest = new Button();
BtnFindCams = new Button();
CbBxFoundCams = new ComboBox();
@@ -56,7 +56,6 @@ namespace AiQ_GUI
lblZoomLock = new Label();
LblLEDI = new Label();
LblLEDV = new Label();
RhTxBxActions = new RichTextBox();
LblOVModule = new Label();
LblIRModule = new Label();
BtnTest = new Button();
@@ -89,6 +88,13 @@ namespace AiQ_GUI
BtnNo = new Button();
BtnYes = new Button();
LblQuestion = new Label();
PnlInputValue = new Panel();
BtnRerun = new Button();
RMANumBox = new NumericUpDown();
TxBxProductKey = new TextBox();
BtnDont = new Button();
BtnDone = new Button();
LblRMA = new Label();
label16 = new Label();
BtnPrintGB = new Button();
BtnPrintAiQ = new Button();
@@ -111,13 +117,6 @@ namespace AiQ_GUI
label9 = new Label();
BtnGenerate = new Button();
TxBxChallenge = new TextBox();
PnlInputValue = new Panel();
BtnRerun = new Button();
RMANumBox = new NumericUpDown();
TxBxProductKey = new TextBox();
BtnDont = new Button();
BtnDone = new Button();
LblRMA = new Label();
BtnSetGodMode = new Button();
btnPsu12V = new Button();
btnPsu48V = new Button();
@@ -160,6 +159,8 @@ namespace AiQ_GUI
LblGUIVers = new Label();
timerTypeIP = new System.Windows.Forms.Timer(components);
TimerFlash = new System.Windows.Forms.Timer(components);
RhTxBxActions = new RichTextBox();
CbBxCamType = new ComboBox();
((System.ComponentModel.ISupportInitialize)PicBxMAV).BeginInit();
((System.ComponentModel.ISupportInitialize)PicBxAiQ).BeginInit();
((System.ComponentModel.ISupportInitialize)PicBxIRF2).BeginInit();
@@ -181,25 +182,23 @@ namespace AiQ_GUI
TabSoak.SuspendLayout();
SuspendLayout();
//
// CbBxCameraType
//
CbBxCameraType.BackColor = Color.FromArgb(53, 51, 64);
CbBxCameraType.DropDownHeight = 500;
CbBxCameraType.DropDownStyle = ComboBoxStyle.DropDownList;
CbBxCameraType.DropDownWidth = 350;
CbBxCameraType.FlatStyle = FlatStyle.Flat;
CbBxCameraType.Font = new Font("Segoe UI Semibold", 10F, FontStyle.Bold);
CbBxCameraType.ForeColor = SystemColors.Control;
CbBxCameraType.FormattingEnabled = true;
CbBxCameraType.IntegralHeight = false;
CbBxCameraType.Location = new Point(10, 298);
CbBxCameraType.Margin = new Padding(4, 3, 4, 3);
CbBxCameraType.MaxDropDownItems = 30;
CbBxCameraType.Name = "CbBxCameraType";
CbBxCameraType.Size = new Size(494, 25);
CbBxCameraType.TabIndex = 188;
CbBxCameraType.SelectedIndexChanged += CmBxCameraType_SelectedIndexChanged;
// CbBxCameraModel
//
CbBxCameraModel.BackColor = Color.FromArgb(53, 51, 64);
CbBxCameraModel.DropDownHeight = 500;
CbBxCameraModel.DropDownStyle = ComboBoxStyle.DropDownList;
CbBxCameraModel.DropDownWidth = 350;
CbBxCameraModel.FlatStyle = FlatStyle.Flat;
CbBxCameraModel.Font = new Font("Segoe UI Semibold", 10F, FontStyle.Bold);
CbBxCameraModel.ForeColor = SystemColors.Control;
CbBxCameraModel.FormattingEnabled = true;
CbBxCameraModel.IntegralHeight = false;
CbBxCameraModel.Location = new Point(10, 298);
CbBxCameraModel.Margin = new Padding(4, 3, 4, 3);
CbBxCameraModel.MaxDropDownItems = 30;
CbBxCameraModel.Name = "CbBxCameraModel";
CbBxCameraModel.Size = new Size(494, 25);
CbBxCameraModel.TabIndex = 188;
// BtnStartTest
//
BtnStartTest.BackColor = Color.FromArgb(70, 65, 80);
@@ -535,20 +534,6 @@ namespace AiQ_GUI
LblLEDV.TabIndex = 185;
LblLEDV.Text = "LED Voltage = ";
//
// RhTxBxActions
//
RhTxBxActions.BackColor = Color.FromArgb(53, 51, 64);
RhTxBxActions.BorderStyle = BorderStyle.None;
RhTxBxActions.Cursor = Cursors.IBeam;
RhTxBxActions.Font = new Font("Segoe UI Semibold", 10F, FontStyle.Bold);
RhTxBxActions.ForeColor = SystemColors.Control;
RhTxBxActions.Location = new Point(10, 355);
RhTxBxActions.Margin = new Padding(4, 3, 4, 3);
RhTxBxActions.Name = "RhTxBxActions";
RhTxBxActions.Size = new Size(495, 156);
RhTxBxActions.TabIndex = 187;
RhTxBxActions.Text = "";
//
// LblOVModule
//
LblOVModule.BackColor = Color.Transparent;
@@ -937,6 +922,7 @@ namespace AiQ_GUI
PnlQuestion.Controls.Add(BtnNo);
PnlQuestion.Controls.Add(BtnYes);
PnlQuestion.Controls.Add(LblQuestion);
PnlQuestion.Controls.Add(PnlInputValue);
PnlQuestion.Location = new Point(251, 14);
PnlQuestion.Margin = new Padding(4, 3, 4, 3);
PnlQuestion.Name = "PnlQuestion";
@@ -989,6 +975,108 @@ namespace AiQ_GUI
LblQuestion.Text = "Test failed, appeal?\r\nSee Actions textbox for details.";
LblQuestion.TextAlign = ContentAlignment.MiddleCenter;
//
// PnlInputValue
//
PnlInputValue.BackColor = Color.FromArgb(39, 37, 55);
PnlInputValue.Controls.Add(BtnRerun);
PnlInputValue.Controls.Add(RMANumBox);
PnlInputValue.Controls.Add(TxBxProductKey);
PnlInputValue.Controls.Add(BtnDont);
PnlInputValue.Controls.Add(BtnDone);
PnlInputValue.Controls.Add(LblRMA);
PnlInputValue.Location = new Point(0, 0);
PnlInputValue.Margin = new Padding(4, 3, 4, 3);
PnlInputValue.Name = "PnlInputValue";
PnlInputValue.Size = new Size(254, 127);
PnlInputValue.TabIndex = 199;
PnlInputValue.Visible = false;
//
// BtnRerun
//
BtnRerun.BackColor = Color.FromArgb(70, 65, 80);
BtnRerun.FlatAppearance.BorderSize = 0;
BtnRerun.FlatStyle = FlatStyle.Flat;
BtnRerun.Font = new Font("Segoe UI Semibold", 10F, FontStyle.Bold);
BtnRerun.ForeColor = SystemColors.Control;
BtnRerun.Location = new Point(132, 82);
BtnRerun.Margin = new Padding(4, 3, 4, 3);
BtnRerun.Name = "BtnRerun";
BtnRerun.Size = new Size(113, 37);
BtnRerun.TabIndex = 177;
BtnRerun.Text = "Rerun";
BtnRerun.UseVisualStyleBackColor = false;
BtnRerun.Click += BtnRerun_Click;
//
// RMANumBox
//
RMANumBox.BackColor = Color.FromArgb(53, 51, 64);
RMANumBox.Font = new Font("Segoe UI Semibold", 10F, FontStyle.Bold);
RMANumBox.ForeColor = SystemColors.Window;
RMANumBox.Location = new Point(10, 38);
RMANumBox.Margin = new Padding(4, 3, 4, 3);
RMANumBox.Maximum = new decimal(new int[] { 99999, 0, 0, 0 });
RMANumBox.Name = "RMANumBox";
RMANumBox.Size = new Size(113, 25);
RMANumBox.TabIndex = 175;
//
// TxBxProductKey
//
TxBxProductKey.BackColor = Color.FromArgb(53, 51, 64);
TxBxProductKey.BorderStyle = BorderStyle.FixedSingle;
TxBxProductKey.Font = new Font("Segoe UI Semibold", 10F, FontStyle.Bold);
TxBxProductKey.ForeColor = SystemColors.Control;
TxBxProductKey.Location = new Point(10, 46);
TxBxProductKey.Margin = new Padding(4, 3, 4, 3);
TxBxProductKey.Name = "TxBxProductKey";
TxBxProductKey.Size = new Size(114, 25);
TxBxProductKey.TabIndex = 162;
TxBxProductKey.TextAlign = HorizontalAlignment.Center;
TxBxProductKey.Visible = false;
//
// BtnDont
//
BtnDont.BackColor = Color.FromArgb(70, 65, 80);
BtnDont.FlatAppearance.BorderSize = 0;
BtnDont.FlatStyle = FlatStyle.Flat;
BtnDont.Font = new Font("Segoe UI Semibold", 10F, FontStyle.Bold);
BtnDont.ForeColor = SystemColors.Control;
BtnDont.Location = new Point(12, 82);
BtnDont.Margin = new Padding(4, 3, 4, 3);
BtnDont.Name = "BtnDont";
BtnDont.Size = new Size(112, 37);
BtnDont.TabIndex = 176;
BtnDont.Text = "Don't have one";
BtnDont.UseVisualStyleBackColor = false;
BtnDont.Click += BtnDont_Click;
//
// BtnDone
//
BtnDone.BackColor = Color.FromArgb(70, 65, 80);
BtnDone.FlatAppearance.BorderSize = 0;
BtnDone.FlatStyle = FlatStyle.Flat;
BtnDone.Font = new Font("Segoe UI Semibold", 10F, FontStyle.Bold);
BtnDone.ForeColor = SystemColors.Control;
BtnDone.Location = new Point(132, 38);
BtnDone.Margin = new Padding(4, 3, 4, 3);
BtnDone.Name = "BtnDone";
BtnDone.Size = new Size(113, 37);
BtnDone.TabIndex = 174;
BtnDone.Text = "Done";
BtnDone.UseVisualStyleBackColor = false;
BtnDone.Click += BtnDone_Click;
//
// LblRMA
//
LblRMA.Font = new Font("Segoe UI Semibold", 10F, FontStyle.Bold);
LblRMA.ForeColor = SystemColors.Control;
LblRMA.Location = new Point(13, 6);
LblRMA.Margin = new Padding(4, 0, 4, 0);
LblRMA.Name = "LblRMA";
LblRMA.Size = new Size(233, 29);
LblRMA.TabIndex = 145;
LblRMA.Text = "What is the RMA number?";
LblRMA.TextAlign = ContentAlignment.MiddleCenter;
//
// label16
//
label16.AutoSize = true;
@@ -1318,108 +1406,6 @@ namespace AiQ_GUI
TxBxChallenge.TextAlign = HorizontalAlignment.Center;
TxBxChallenge.TextChanged += TxBxChallenge_TextChanged;
//
// PnlInputValue
//
PnlInputValue.BackColor = Color.FromArgb(39, 37, 55);
PnlInputValue.Controls.Add(BtnRerun);
PnlInputValue.Controls.Add(RMANumBox);
PnlInputValue.Controls.Add(TxBxProductKey);
PnlInputValue.Controls.Add(BtnDont);
PnlInputValue.Controls.Add(BtnDone);
PnlInputValue.Controls.Add(LblRMA);
PnlInputValue.Location = new Point(251, 155);
PnlInputValue.Margin = new Padding(4, 3, 4, 3);
PnlInputValue.Name = "PnlInputValue";
PnlInputValue.Size = new Size(254, 127);
PnlInputValue.TabIndex = 199;
PnlInputValue.Visible = false;
//
// BtnRerun
//
BtnRerun.BackColor = Color.FromArgb(70, 65, 80);
BtnRerun.FlatAppearance.BorderSize = 0;
BtnRerun.FlatStyle = FlatStyle.Flat;
BtnRerun.Font = new Font("Segoe UI Semibold", 10F, FontStyle.Bold);
BtnRerun.ForeColor = SystemColors.Control;
BtnRerun.Location = new Point(132, 82);
BtnRerun.Margin = new Padding(4, 3, 4, 3);
BtnRerun.Name = "BtnRerun";
BtnRerun.Size = new Size(113, 37);
BtnRerun.TabIndex = 177;
BtnRerun.Text = "Rerun";
BtnRerun.UseVisualStyleBackColor = false;
BtnRerun.Click += BtnRerun_Click;
//
// RMANumBox
//
RMANumBox.BackColor = Color.FromArgb(53, 51, 64);
RMANumBox.Font = new Font("Segoe UI Semibold", 10F, FontStyle.Bold);
RMANumBox.ForeColor = SystemColors.Window;
RMANumBox.Location = new Point(10, 38);
RMANumBox.Margin = new Padding(4, 3, 4, 3);
RMANumBox.Maximum = new decimal(new int[] { 99999, 0, 0, 0 });
RMANumBox.Name = "RMANumBox";
RMANumBox.Size = new Size(113, 25);
RMANumBox.TabIndex = 175;
//
// TxBxProductKey
//
TxBxProductKey.BackColor = Color.FromArgb(53, 51, 64);
TxBxProductKey.BorderStyle = BorderStyle.FixedSingle;
TxBxProductKey.Font = new Font("Segoe UI Semibold", 10F, FontStyle.Bold);
TxBxProductKey.ForeColor = SystemColors.Control;
TxBxProductKey.Location = new Point(10, 46);
TxBxProductKey.Margin = new Padding(4, 3, 4, 3);
TxBxProductKey.Name = "TxBxProductKey";
TxBxProductKey.Size = new Size(114, 25);
TxBxProductKey.TabIndex = 162;
TxBxProductKey.TextAlign = HorizontalAlignment.Center;
TxBxProductKey.Visible = false;
//
// BtnDont
//
BtnDont.BackColor = Color.FromArgb(70, 65, 80);
BtnDont.FlatAppearance.BorderSize = 0;
BtnDont.FlatStyle = FlatStyle.Flat;
BtnDont.Font = new Font("Segoe UI Semibold", 10F, FontStyle.Bold);
BtnDont.ForeColor = SystemColors.Control;
BtnDont.Location = new Point(12, 82);
BtnDont.Margin = new Padding(4, 3, 4, 3);
BtnDont.Name = "BtnDont";
BtnDont.Size = new Size(112, 37);
BtnDont.TabIndex = 176;
BtnDont.Text = "Don't have one";
BtnDont.UseVisualStyleBackColor = false;
BtnDont.Click += BtnDont_Click;
//
// BtnDone
//
BtnDone.BackColor = Color.FromArgb(70, 65, 80);
BtnDone.FlatAppearance.BorderSize = 0;
BtnDone.FlatStyle = FlatStyle.Flat;
BtnDone.Font = new Font("Segoe UI Semibold", 10F, FontStyle.Bold);
BtnDone.ForeColor = SystemColors.Control;
BtnDone.Location = new Point(132, 38);
BtnDone.Margin = new Padding(4, 3, 4, 3);
BtnDone.Name = "BtnDone";
BtnDone.Size = new Size(113, 37);
BtnDone.TabIndex = 174;
BtnDone.Text = "Done";
BtnDone.UseVisualStyleBackColor = false;
BtnDone.Click += BtnDone_Click;
//
// LblRMA
//
LblRMA.Font = new Font("Segoe UI Semibold", 10F, FontStyle.Bold);
LblRMA.ForeColor = SystemColors.Control;
LblRMA.Location = new Point(13, 6);
LblRMA.Margin = new Padding(4, 0, 4, 0);
LblRMA.Name = "LblRMA";
LblRMA.Size = new Size(233, 29);
LblRMA.TabIndex = 145;
LblRMA.Text = "What is the RMA number?";
LblRMA.TextAlign = ContentAlignment.MiddleCenter;
//
// BtnSetGodMode
//
BtnSetGodMode.BackColor = Color.FromArgb(70, 65, 80);
@@ -2056,6 +2042,39 @@ namespace AiQ_GUI
//
timerTypeIP.Interval = 2000;
timerTypeIP.Tick += timerTypeIP_Tick;
//
// RhTxBxActions
//
RhTxBxActions.BackColor = Color.FromArgb(53, 51, 64);
RhTxBxActions.BorderStyle = BorderStyle.None;
RhTxBxActions.Cursor = Cursors.IBeam;
RhTxBxActions.Font = new Font("Segoe UI Semibold", 10F, FontStyle.Bold);
RhTxBxActions.ForeColor = SystemColors.Control;
RhTxBxActions.Location = new Point(10, 355);
RhTxBxActions.Margin = new Padding(4, 3, 4, 3);
RhTxBxActions.Name = "RhTxBxActions";
RhTxBxActions.Size = new Size(495, 156);
RhTxBxActions.TabIndex = 187;
RhTxBxActions.Text = "";
//
// CbBxCamType
//
CbBxCamType.BackColor = Color.FromArgb(53, 51, 64);
CbBxCamType.FlatStyle = FlatStyle.Flat;
CbBxCamType.Font = new Font("Segoe UI Semibold", 10F, FontStyle.Bold);
CbBxCamType.ForeColor = SystemColors.Control;
CbBxCamType.FormattingEnabled = true;
CbBxCamType.Items.AddRange(new object[] { "AiQ", "Mobile" });
CbBxCamType.Location = new Point(251, 262);
CbBxCamType.Margin = new Padding(4, 3, 4, 3);
CbBxCamType.MaxDropDownItems = 20;
CbBxCamType.Name = "CbBxCamType";
CbBxCamType.Size = new Size(233, 25);
CbBxCamType.TabIndex = 241;
CbBxCamType.Text = "Select Camera Type";
this.CbBxCamType.SelectedIndexChanged += new System.EventHandler(this.CbBxCamType_SelectedIndexChanged);
//
// MainForm
//
@@ -2063,23 +2082,23 @@ namespace AiQ_GUI
AutoScaleMode = AutoScaleMode.Font;
BackgroundImage = Properties.Resources.homepage_banner;
ClientSize = new Size(932, 970);
Controls.Add(RhTxBxActions);
Controls.Add(CbBxCamType);
Controls.Add(LblGUIVers);
Controls.Add(BtnOpenWebpage);
Controls.Add(TabImagesandSettings);
Controls.Add(PicBxMAV);
Controls.Add(PicBxAiQ);
Controls.Add(PnlLbls);
Controls.Add(PnlInputValue);
Controls.Add(PnlQuestion);
Controls.Add(LblActions);
Controls.Add(CbBxCameraType);
Controls.Add(CbBxCameraModel);
Controls.Add(CbBxUserName);
Controls.Add(BtnPreTest);
Controls.Add(BtnFindCams);
Controls.Add(BtnStartTest);
Controls.Add(CbBxFoundCams);
Controls.Add(BtnTest);
Controls.Add(RhTxBxActions);
Controls.Add(BtnRestart);
Controls.Add(BtnMin);
Controls.Add(BtnClose);
@@ -2144,9 +2163,8 @@ namespace AiQ_GUI
private System.Windows.Forms.Label lblZoomLock;
private System.Windows.Forms.Label LblLEDI;
private System.Windows.Forms.Label LblLEDV;
private System.Windows.Forms.ComboBox CbBxCameraType;
private System.Windows.Forms.ComboBox CbBxCameraModel;
private System.Windows.Forms.Button BtnPreTest;
private System.Windows.Forms.RichTextBox RhTxBxActions;
private System.Windows.Forms.Label LblOVModule;
private System.Windows.Forms.Label LblIRModule;
private System.Windows.Forms.Button BtnTest;
@@ -2251,5 +2269,7 @@ namespace AiQ_GUI
private Button BtnFactoryDefault;
private Button BtnUploadWonwooSetOV;
private Button BtnUploadWonwooSetIR;
private RichTextBox RhTxBxActions;
public ComboBox CbBxCamType;
}
}