Introduced the CJMS11 camera component and its factory in TbfComponents. Added implementation for the CJMS11 camera class, along with unit tests to validate its functionality and integration. This enhances existing camera support in the system.
261 lines
11 KiB
C#
261 lines
11 KiB
C#
///
|
|
/// Copyright (c) 2017 Sensus Metering Systems
|
|
///
|
|
namespace TBF.Rig.Network.Camera.CJMS11
|
|
{
|
|
partial class CameraCfgCtrl
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Component Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.hwAddressTextBox = new System.Windows.Forms.TextBox();
|
|
this.hwAddressLabel = new System.Windows.Forms.Label();
|
|
this.parentNameLabel = new System.Windows.Forms.Label();
|
|
this.nameTextBox = new System.Windows.Forms.TextBox();
|
|
this.nameLabel = new System.Windows.Forms.Label();
|
|
this.classNameLabel = new System.Windows.Forms.Label();
|
|
this.parentNameComboBox = new System.Windows.Forms.ComboBox();
|
|
this.displayTerminalCheckBox = new System.Windows.Forms.CheckBox();
|
|
this.testImagesCountTextBox = new System.Windows.Forms.TextBox();
|
|
this.testImagesCountLabel = new System.Windows.Forms.Label();
|
|
this.testImagesModeComboBox = new System.Windows.Forms.ComboBox();
|
|
this.testImagesModeLabel = new System.Windows.Forms.Label();
|
|
this.ipAddressTextBox = new System.Windows.Forms.TextBox();
|
|
this.iPAddressLabel = new System.Windows.Forms.Label();
|
|
this.ipAddressAdapterTextBox = new System.Windows.Forms.TextBox();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.SuspendLayout();
|
|
//
|
|
// hwAddressTextBox
|
|
//
|
|
this.hwAddressTextBox.Enabled = false;
|
|
this.hwAddressTextBox.Location = new System.Drawing.Point(198, 209);
|
|
this.hwAddressTextBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.hwAddressTextBox.Name = "hwAddressTextBox";
|
|
this.hwAddressTextBox.Size = new System.Drawing.Size(193, 26);
|
|
this.hwAddressTextBox.TabIndex = 6;
|
|
//
|
|
// hwAddressLabel
|
|
//
|
|
this.hwAddressLabel.AutoSize = true;
|
|
this.hwAddressLabel.Location = new System.Drawing.Point(42, 213);
|
|
this.hwAddressLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.hwAddressLabel.Name = "hwAddressLabel";
|
|
this.hwAddressLabel.Size = new System.Drawing.Size(107, 20);
|
|
this.hwAddressLabel.TabIndex = 5;
|
|
this.hwAddressLabel.Text = "Serial number";
|
|
//
|
|
// parentNameLabel
|
|
//
|
|
this.parentNameLabel.AutoSize = true;
|
|
this.parentNameLabel.Location = new System.Drawing.Point(42, 106);
|
|
this.parentNameLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.parentNameLabel.Name = "parentNameLabel";
|
|
this.parentNameLabel.Size = new System.Drawing.Size(100, 20);
|
|
this.parentNameLabel.TabIndex = 3;
|
|
this.parentNameLabel.Text = "Parent name";
|
|
//
|
|
// nameTextBox
|
|
//
|
|
this.nameTextBox.Enabled = false;
|
|
this.nameTextBox.Location = new System.Drawing.Point(198, 63);
|
|
this.nameTextBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.nameTextBox.Name = "nameTextBox";
|
|
this.nameTextBox.Size = new System.Drawing.Size(193, 26);
|
|
this.nameTextBox.TabIndex = 2;
|
|
//
|
|
// nameLabel
|
|
//
|
|
this.nameLabel.AutoSize = true;
|
|
this.nameLabel.Location = new System.Drawing.Point(42, 68);
|
|
this.nameLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.nameLabel.Name = "nameLabel";
|
|
this.nameLabel.Size = new System.Drawing.Size(51, 20);
|
|
this.nameLabel.TabIndex = 1;
|
|
this.nameLabel.Text = "Name";
|
|
//
|
|
// classNameLabel
|
|
//
|
|
this.classNameLabel.AutoSize = true;
|
|
this.classNameLabel.Location = new System.Drawing.Point(194, 26);
|
|
this.classNameLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.classNameLabel.Name = "classNameLabel";
|
|
this.classNameLabel.Size = new System.Drawing.Size(125, 20);
|
|
this.classNameLabel.TabIndex = 0;
|
|
this.classNameLabel.Text = "ComonentName";
|
|
//
|
|
// parentNameComboBox
|
|
//
|
|
this.parentNameComboBox.Enabled = false;
|
|
this.parentNameComboBox.FormattingEnabled = true;
|
|
this.parentNameComboBox.Location = new System.Drawing.Point(198, 102);
|
|
this.parentNameComboBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.parentNameComboBox.Name = "parentNameComboBox";
|
|
this.parentNameComboBox.Size = new System.Drawing.Size(193, 28);
|
|
this.parentNameComboBox.TabIndex = 4;
|
|
this.parentNameComboBox.TextChanged += new System.EventHandler(this.parentNameComboBox_TextChanged);
|
|
//
|
|
// displayTerminalCheckBox
|
|
//
|
|
this.displayTerminalCheckBox.AutoSize = true;
|
|
this.displayTerminalCheckBox.Enabled = false;
|
|
this.displayTerminalCheckBox.Location = new System.Drawing.Point(200, 255);
|
|
this.displayTerminalCheckBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.displayTerminalCheckBox.Name = "displayTerminalCheckBox";
|
|
this.displayTerminalCheckBox.Size = new System.Drawing.Size(146, 24);
|
|
this.displayTerminalCheckBox.TabIndex = 7;
|
|
this.displayTerminalCheckBox.Text = "Display terminal";
|
|
this.displayTerminalCheckBox.UseVisualStyleBackColor = true;
|
|
//
|
|
// testImagesCountTextBox
|
|
//
|
|
this.testImagesCountTextBox.Enabled = false;
|
|
this.testImagesCountTextBox.Location = new System.Drawing.Point(198, 335);
|
|
this.testImagesCountTextBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.testImagesCountTextBox.Name = "testImagesCountTextBox";
|
|
this.testImagesCountTextBox.Size = new System.Drawing.Size(67, 26);
|
|
this.testImagesCountTextBox.TabIndex = 12;
|
|
//
|
|
// testImagesCountLabel
|
|
//
|
|
this.testImagesCountLabel.AutoSize = true;
|
|
this.testImagesCountLabel.Location = new System.Drawing.Point(42, 339);
|
|
this.testImagesCountLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.testImagesCountLabel.Name = "testImagesCountLabel";
|
|
this.testImagesCountLabel.Size = new System.Drawing.Size(139, 20);
|
|
this.testImagesCountLabel.TabIndex = 11;
|
|
this.testImagesCountLabel.Text = "Test images count";
|
|
//
|
|
// testImagesModeComboBox
|
|
//
|
|
this.testImagesModeComboBox.Enabled = false;
|
|
this.testImagesModeComboBox.FormattingEnabled = true;
|
|
this.testImagesModeComboBox.Location = new System.Drawing.Point(198, 295);
|
|
this.testImagesModeComboBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.testImagesModeComboBox.Name = "testImagesModeComboBox";
|
|
this.testImagesModeComboBox.Size = new System.Drawing.Size(193, 28);
|
|
this.testImagesModeComboBox.TabIndex = 14;
|
|
//
|
|
// testImagesModeLabel
|
|
//
|
|
this.testImagesModeLabel.AutoSize = true;
|
|
this.testImagesModeLabel.Location = new System.Drawing.Point(42, 299);
|
|
this.testImagesModeLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.testImagesModeLabel.Name = "testImagesModeLabel";
|
|
this.testImagesModeLabel.Size = new System.Drawing.Size(139, 20);
|
|
this.testImagesModeLabel.TabIndex = 13;
|
|
this.testImagesModeLabel.Text = "Test images mode";
|
|
//
|
|
// ipAddressTextBox
|
|
//
|
|
this.ipAddressTextBox.Enabled = false;
|
|
this.ipAddressTextBox.Location = new System.Drawing.Point(198, 176);
|
|
this.ipAddressTextBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.ipAddressTextBox.Name = "ipAddressTextBox";
|
|
this.ipAddressTextBox.Size = new System.Drawing.Size(193, 26);
|
|
this.ipAddressTextBox.TabIndex = 15;
|
|
//
|
|
// iPAddressLabel
|
|
//
|
|
this.iPAddressLabel.AutoSize = true;
|
|
this.iPAddressLabel.Location = new System.Drawing.Point(42, 176);
|
|
this.iPAddressLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.iPAddressLabel.Name = "iPAddressLabel";
|
|
this.iPAddressLabel.Size = new System.Drawing.Size(89, 20);
|
|
this.iPAddressLabel.TabIndex = 16;
|
|
this.iPAddressLabel.Text = "IP address:";
|
|
//
|
|
// ipAddressAdapterTextBox
|
|
//
|
|
this.ipAddressAdapterTextBox.Enabled = false;
|
|
this.ipAddressAdapterTextBox.Location = new System.Drawing.Point(200, 140);
|
|
this.ipAddressAdapterTextBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.ipAddressAdapterTextBox.Name = "ipAddressAdapterTextBox";
|
|
this.ipAddressAdapterTextBox.Size = new System.Drawing.Size(193, 26);
|
|
this.ipAddressAdapterTextBox.TabIndex = 17;
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(42, 140);
|
|
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(150, 20);
|
|
this.label1.TabIndex = 18;
|
|
this.label1.Text = "Adapter IP address:";
|
|
//
|
|
// CameraCfgCtrl
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.Controls.Add(this.label1);
|
|
this.Controls.Add(this.ipAddressAdapterTextBox);
|
|
this.Controls.Add(this.iPAddressLabel);
|
|
this.Controls.Add(this.ipAddressTextBox);
|
|
this.Controls.Add(this.testImagesModeComboBox);
|
|
this.Controls.Add(this.testImagesModeLabel);
|
|
this.Controls.Add(this.hwAddressTextBox);
|
|
this.Controls.Add(this.hwAddressLabel);
|
|
this.Controls.Add(this.testImagesCountTextBox);
|
|
this.Controls.Add(this.testImagesCountLabel);
|
|
this.Controls.Add(this.displayTerminalCheckBox);
|
|
this.Controls.Add(this.parentNameComboBox);
|
|
this.Controls.Add(this.parentNameLabel);
|
|
this.Controls.Add(this.nameTextBox);
|
|
this.Controls.Add(this.nameLabel);
|
|
this.Controls.Add(this.classNameLabel);
|
|
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.Name = "CameraCfgCtrl";
|
|
this.Size = new System.Drawing.Size(603, 391);
|
|
this.Load += new System.EventHandler(this.PumpCfgCtrl_Load);
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
}
|
|
|
|
private System.Windows.Forms.Label label1;
|
|
|
|
private System.Windows.Forms.TextBox ipAddressAdapterTextBox;
|
|
|
|
private System.Windows.Forms.TextBox ipAddressTextBox;
|
|
private System.Windows.Forms.Label iPAddressLabel;
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.TextBox hwAddressTextBox;
|
|
private System.Windows.Forms.Label hwAddressLabel;
|
|
private System.Windows.Forms.Label parentNameLabel;
|
|
private System.Windows.Forms.TextBox nameTextBox;
|
|
private System.Windows.Forms.Label nameLabel;
|
|
private System.Windows.Forms.Label classNameLabel;
|
|
private System.Windows.Forms.ComboBox parentNameComboBox;
|
|
private System.Windows.Forms.CheckBox displayTerminalCheckBox;
|
|
private System.Windows.Forms.TextBox testImagesCountTextBox;
|
|
private System.Windows.Forms.Label testImagesCountLabel;
|
|
private System.Windows.Forms.ComboBox testImagesModeComboBox;
|
|
private System.Windows.Forms.Label testImagesModeLabel;
|
|
}
|
|
}
|