using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using QCRPG.Framework;

namespace QCRPG.TSL.BT;

public class LEProdTestUserControl : UserControlBase
{
	private BTMainWorkerThread btMainWorkerThread;

	private IContainer components;

	private GroupBox gbxTransmitterTest;

	private GroupBox gbxReceiverTests;

	private GroupBox groupBox2;

	private Label label1;

	private Label label2;

	private Button btnTxTestStop;

	private Button btnTxTestStart;

	private Label label3;

	private ComboBox cbTxTestPayloadType;

	private Button btnRxTestStop;

	private Button btnRxTestStart;

	private Label label4;

	private Label label5;

	private Label lblRxTestNoOfPacketsReceived;

	private Label label6;

	private NumericUpDown nudContTxTestPowerLevel;

	private Label label7;

	private Label label10;

	private Label label9;

	private Label label8;

	private ComboBox cbContTxTestType;

	private NumericUpDown nudContTxTestPatternLength;

	private TextBox txtContTxTestPattern;

	private Button btnContTxTestStop;

	private Button btnContTxTestStart;

	private Label label11;

	private ComboBox cbTxTestDataRate;

	private ComboBox cbRxTestDataRate;

	private Label label12;

	private NumericUpDown nudTxTestFrequency;

	private NumericUpDown nudRxTestFrequency;

	private NumericUpDown nudContTxTestFrequency;

	private NumericUpDown nudTxTestPayloadLength;

	private ComboBox cbRxTestModulationIndex;

	private Label label15;

	public LEProdTestUserControl(BTMainWorkerThread btMainWorkerThread)
		: base("LE Prod Test")
	{
		InitializeComponent();
		this.btMainWorkerThread = btMainWorkerThread;
		cbTxTestDataRate.SelectedIndex = 0;
		cbTxTestPayloadType.SelectedIndex = 0;
		cbRxTestDataRate.SelectedIndex = 0;
		cbRxTestModulationIndex.SelectedIndex = 0;
		cbContTxTestType.SelectedIndex = 0;
		btnTxTestStop.Enabled = false;
		btnRxTestStop.Enabled = false;
		btnContTxTestStop.Enabled = false;
	}

	public void UpdateNoOfReceivedPackets(uint packets)
	{
		lblRxTestNoOfPacketsReceived.Text = packets.ToString();
	}

	private void OnTransmitterTestStartClick(object sender, EventArgs e)
	{
		btnTxTestStart.Enabled = false;
		btnTxTestStop.Enabled = true;
		uint frequency = (uint)nudTxTestFrequency.Value;
		uint testDataLength = (uint)nudTxTestPayloadLength.Value;
		uint selectedIndex = (uint)cbTxTestPayloadType.SelectedIndex;
		if (cbTxTestDataRate.SelectedItem.ToString() == "LE1M")
		{
			btMainWorkerThread.LeTxTest(frequency, testDataLength, selectedIndex);
			return;
		}
		uint phy = (uint)(cbTxTestDataRate.SelectedIndex + 1);
		btMainWorkerThread.LeEnhancedTxTest(frequency, testDataLength, selectedIndex, phy);
	}

	private void OnTransmitterTestStopClick(object sender, EventArgs e)
	{
		btnTxTestStart.Enabled = true;
		btnTxTestStop.Enabled = false;
		btMainWorkerThread.Reset();
	}

	private void OnReceiverTestStartClick(object sender, EventArgs e)
	{
		btnRxTestStart.Enabled = false;
		btnRxTestStop.Enabled = true;
		lblRxTestNoOfPacketsReceived.Text = "--";
		uint frequency = (uint)nudRxTestFrequency.Value;
		if (cbRxTestDataRate.SelectedItem.ToString() == "LE1M")
		{
			btMainWorkerThread.LeRxTest(frequency);
			return;
		}
		uint phy = (uint)(cbRxTestDataRate.SelectedIndex + 1);
		uint selectedIndex = (uint)cbRxTestModulationIndex.SelectedIndex;
		btMainWorkerThread.LeEnhancedRxTest(frequency, phy, selectedIndex);
	}

	private void OnReceiverTestStopClick(object sender, EventArgs e)
	{
		btnRxTestStart.Enabled = true;
		btnRxTestStop.Enabled = false;
		btMainWorkerThread.LeTestEnd();
	}

	private void OnContTxTestStartClick(object sender, EventArgs e)
	{
		if (!AreContTransmitterTestValuesValid(out var error))
		{
			MessageBoxes.ShowErrorBox(error);
			return;
		}
		btnContTxTestStart.Enabled = false;
		btnContTxTestStop.Enabled = true;
		uint frequency = (uint)nudContTxTestFrequency.Value;
		uint txPower = (uint)nudContTxTestPowerLevel.Value;
		uint transmitType = ((!(cbContTxTestType.SelectedItem.ToString() == "LE1M")) ? 8u : 0u);
		uint patternLength = Convert.ToUInt32(nudContTxTestPatternLength.Text);
		uint bitPattern = Convert.ToUInt32(txtContTxTestPattern.Text, 16);
		btMainWorkerThread.LeContinuousTxTest(frequency, txPower, transmitType, patternLength, bitPattern);
	}

	private void OnContTxTestStopClick(object sender, EventArgs e)
	{
		btnContTxTestStart.Enabled = true;
		btnContTxTestStop.Enabled = false;
		btMainWorkerThread.Reset();
	}

	private bool AreContTransmitterTestValuesValid(out string error)
	{
		error = string.Empty;
		if (string.IsNullOrWhiteSpace(txtContTxTestPattern.Text))
		{
			error = "Pattern cannot be empty.";
			return false;
		}
		try
		{
			Convert.ToUInt32(txtContTxTestPattern.Text, 16);
		}
		catch
		{
			error = "Pattern should be a valid hexadecimal number.";
		}
		return true;
	}

	protected override void Dispose(bool disposing)
	{
		if (disposing && components != null)
		{
			components.Dispose();
		}
		base.Dispose(disposing);
	}

	private void InitializeComponent()
	{
		this.gbxTransmitterTest = new System.Windows.Forms.GroupBox();
		this.nudTxTestPayloadLength = new System.Windows.Forms.NumericUpDown();
		this.nudTxTestFrequency = new System.Windows.Forms.NumericUpDown();
		this.cbTxTestDataRate = new System.Windows.Forms.ComboBox();
		this.label11 = new System.Windows.Forms.Label();
		this.cbTxTestPayloadType = new System.Windows.Forms.ComboBox();
		this.btnTxTestStop = new System.Windows.Forms.Button();
		this.btnTxTestStart = new System.Windows.Forms.Button();
		this.label3 = new System.Windows.Forms.Label();
		this.label2 = new System.Windows.Forms.Label();
		this.label1 = new System.Windows.Forms.Label();
		this.gbxReceiverTests = new System.Windows.Forms.GroupBox();
		this.cbRxTestModulationIndex = new System.Windows.Forms.ComboBox();
		this.label15 = new System.Windows.Forms.Label();
		this.nudRxTestFrequency = new System.Windows.Forms.NumericUpDown();
		this.cbRxTestDataRate = new System.Windows.Forms.ComboBox();
		this.label12 = new System.Windows.Forms.Label();
		this.lblRxTestNoOfPacketsReceived = new System.Windows.Forms.Label();
		this.label5 = new System.Windows.Forms.Label();
		this.btnRxTestStop = new System.Windows.Forms.Button();
		this.btnRxTestStart = new System.Windows.Forms.Button();
		this.label4 = new System.Windows.Forms.Label();
		this.groupBox2 = new System.Windows.Forms.GroupBox();
		this.nudContTxTestFrequency = new System.Windows.Forms.NumericUpDown();
		this.btnContTxTestStop = new System.Windows.Forms.Button();
		this.txtContTxTestPattern = new System.Windows.Forms.TextBox();
		this.btnContTxTestStart = new System.Windows.Forms.Button();
		this.nudContTxTestPatternLength = new System.Windows.Forms.NumericUpDown();
		this.cbContTxTestType = new System.Windows.Forms.ComboBox();
		this.label10 = new System.Windows.Forms.Label();
		this.label9 = new System.Windows.Forms.Label();
		this.label8 = new System.Windows.Forms.Label();
		this.nudContTxTestPowerLevel = new System.Windows.Forms.NumericUpDown();
		this.label7 = new System.Windows.Forms.Label();
		this.label6 = new System.Windows.Forms.Label();
		this.gbxTransmitterTest.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.nudTxTestPayloadLength).BeginInit();
		((System.ComponentModel.ISupportInitialize)this.nudTxTestFrequency).BeginInit();
		this.gbxReceiverTests.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.nudRxTestFrequency).BeginInit();
		this.groupBox2.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.nudContTxTestFrequency).BeginInit();
		((System.ComponentModel.ISupportInitialize)this.nudContTxTestPatternLength).BeginInit();
		((System.ComponentModel.ISupportInitialize)this.nudContTxTestPowerLevel).BeginInit();
		base.SuspendLayout();
		this.gbxTransmitterTest.Controls.Add(this.nudTxTestPayloadLength);
		this.gbxTransmitterTest.Controls.Add(this.nudTxTestFrequency);
		this.gbxTransmitterTest.Controls.Add(this.cbTxTestDataRate);
		this.gbxTransmitterTest.Controls.Add(this.label11);
		this.gbxTransmitterTest.Controls.Add(this.cbTxTestPayloadType);
		this.gbxTransmitterTest.Controls.Add(this.btnTxTestStop);
		this.gbxTransmitterTest.Controls.Add(this.btnTxTestStart);
		this.gbxTransmitterTest.Controls.Add(this.label3);
		this.gbxTransmitterTest.Controls.Add(this.label2);
		this.gbxTransmitterTest.Controls.Add(this.label1);
		this.gbxTransmitterTest.Location = new System.Drawing.Point(11, 12);
		this.gbxTransmitterTest.Name = "gbxTransmitterTest";
		this.gbxTransmitterTest.Size = new System.Drawing.Size(434, 227);
		this.gbxTransmitterTest.TabIndex = 0;
		this.gbxTransmitterTest.TabStop = false;
		this.gbxTransmitterTest.Text = "Transmitter Tests";
		this.nudTxTestPayloadLength.Location = new System.Drawing.Point(162, 95);
		this.nudTxTestPayloadLength.Maximum = new decimal(new int[4] { 100000000, 0, 0, 0 });
		this.nudTxTestPayloadLength.Name = "nudTxTestPayloadLength";
		this.nudTxTestPayloadLength.Size = new System.Drawing.Size(115, 22);
		this.nudTxTestPayloadLength.TabIndex = 3;
		this.nudTxTestPayloadLength.Value = new decimal(new int[4] { 37, 0, 0, 0 });
		this.nudTxTestFrequency.Location = new System.Drawing.Point(162, 33);
		this.nudTxTestFrequency.Maximum = new decimal(new int[4] { 2480, 0, 0, 0 });
		this.nudTxTestFrequency.Minimum = new decimal(new int[4] { 2402, 0, 0, 0 });
		this.nudTxTestFrequency.Name = "nudTxTestFrequency";
		this.nudTxTestFrequency.Size = new System.Drawing.Size(115, 22);
		this.nudTxTestFrequency.TabIndex = 1;
		this.nudTxTestFrequency.Value = new decimal(new int[4] { 2402, 0, 0, 0 });
		this.cbTxTestDataRate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.cbTxTestDataRate.FormattingEnabled = true;
		this.cbTxTestDataRate.Items.AddRange(new object[4] { "LE1M", "LE2M", "LELR8", "LELR2" });
		this.cbTxTestDataRate.Location = new System.Drawing.Point(161, 64);
		this.cbTxTestDataRate.Name = "cbTxTestDataRate";
		this.cbTxTestDataRate.Size = new System.Drawing.Size(115, 24);
		this.cbTxTestDataRate.TabIndex = 2;
		this.label11.AutoSize = true;
		this.label11.Location = new System.Drawing.Point(7, 67);
		this.label11.Name = "label11";
		this.label11.Size = new System.Drawing.Size(72, 17);
		this.label11.TabIndex = 0;
		this.label11.Text = "Data Rate";
		this.cbTxTestPayloadType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.cbTxTestPayloadType.FormattingEnabled = true;
		this.cbTxTestPayloadType.Items.AddRange(new object[8] { "Pseudo-Random Bit Sequence 9", "Pattern of alternating bits '11110000'", "Pattern of alternating bits '10101010'", "Pseudo-Random bit sequence 15", "Pattern of all '1' bits", "Pattern of all '0' bits", "Pattern of alternating bits '00001111'", "Pattern of alternating bits '0101'" });
		this.cbTxTestPayloadType.Location = new System.Drawing.Point(162, 125);
		this.cbTxTestPayloadType.Name = "cbTxTestPayloadType";
		this.cbTxTestPayloadType.Size = new System.Drawing.Size(260, 24);
		this.cbTxTestPayloadType.TabIndex = 4;
		this.btnTxTestStop.Location = new System.Drawing.Point(177, 194);
		this.btnTxTestStop.Name = "btnTxTestStop";
		this.btnTxTestStop.Size = new System.Drawing.Size(75, 25);
		this.btnTxTestStop.TabIndex = 6;
		this.btnTxTestStop.Text = "Stop";
		this.btnTxTestStop.UseVisualStyleBackColor = true;
		this.btnTxTestStop.Click += new System.EventHandler(OnTransmitterTestStopClick);
		this.btnTxTestStart.Location = new System.Drawing.Point(89, 194);
		this.btnTxTestStart.Name = "btnTxTestStart";
		this.btnTxTestStart.Size = new System.Drawing.Size(75, 25);
		this.btnTxTestStart.TabIndex = 5;
		this.btnTxTestStart.Text = "Start";
		this.btnTxTestStart.UseVisualStyleBackColor = true;
		this.btnTxTestStart.Click += new System.EventHandler(OnTransmitterTestStartClick);
		this.label3.AutoSize = true;
		this.label3.Location = new System.Drawing.Point(7, 128);
		this.label3.Name = "label3";
		this.label3.Size = new System.Drawing.Size(95, 17);
		this.label3.TabIndex = 0;
		this.label3.Text = "Payload Type";
		this.label2.AutoSize = true;
		this.label2.Location = new System.Drawing.Point(7, 96);
		this.label2.Name = "label2";
		this.label2.Size = new System.Drawing.Size(107, 17);
		this.label2.TabIndex = 0;
		this.label2.Text = "Payload Length";
		this.label1.AutoSize = true;
		this.label1.Location = new System.Drawing.Point(7, 35);
		this.label1.Name = "label1";
		this.label1.Size = new System.Drawing.Size(149, 17);
		this.label1.TabIndex = 0;
		this.label1.Text = "Test Frequency (MHz)";
		this.gbxReceiverTests.Controls.Add(this.cbRxTestModulationIndex);
		this.gbxReceiverTests.Controls.Add(this.label15);
		this.gbxReceiverTests.Controls.Add(this.nudRxTestFrequency);
		this.gbxReceiverTests.Controls.Add(this.cbRxTestDataRate);
		this.gbxReceiverTests.Controls.Add(this.label12);
		this.gbxReceiverTests.Controls.Add(this.lblRxTestNoOfPacketsReceived);
		this.gbxReceiverTests.Controls.Add(this.label5);
		this.gbxReceiverTests.Controls.Add(this.btnRxTestStop);
		this.gbxReceiverTests.Controls.Add(this.btnRxTestStart);
		this.gbxReceiverTests.Controls.Add(this.label4);
		this.gbxReceiverTests.Location = new System.Drawing.Point(455, 12);
		this.gbxReceiverTests.Name = "gbxReceiverTests";
		this.gbxReceiverTests.Size = new System.Drawing.Size(376, 227);
		this.gbxReceiverTests.TabIndex = 1;
		this.gbxReceiverTests.TabStop = false;
		this.gbxReceiverTests.Text = "Receiver Tests";
		this.cbRxTestModulationIndex.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.cbRxTestModulationIndex.FormattingEnabled = true;
		this.cbRxTestModulationIndex.Items.AddRange(new object[2] { "Standard modulation index", "Stable modulation index" });
		this.cbRxTestModulationIndex.Location = new System.Drawing.Point(163, 92);
		this.cbRxTestModulationIndex.Name = "cbRxTestModulationIndex";
		this.cbRxTestModulationIndex.Size = new System.Drawing.Size(200, 24);
		this.cbRxTestModulationIndex.TabIndex = 9;
		this.label15.AutoSize = true;
		this.label15.Location = new System.Drawing.Point(8, 95);
		this.label15.Name = "label15";
		this.label15.Size = new System.Drawing.Size(114, 17);
		this.label15.TabIndex = 16;
		this.label15.Text = "Modulation Index";
		this.nudRxTestFrequency.Location = new System.Drawing.Point(162, 33);
		this.nudRxTestFrequency.Maximum = new decimal(new int[4] { 2480, 0, 0, 0 });
		this.nudRxTestFrequency.Minimum = new decimal(new int[4] { 2402, 0, 0, 0 });
		this.nudRxTestFrequency.Name = "nudRxTestFrequency";
		this.nudRxTestFrequency.Size = new System.Drawing.Size(115, 22);
		this.nudRxTestFrequency.TabIndex = 7;
		this.nudRxTestFrequency.Value = new decimal(new int[4] { 2402, 0, 0, 0 });
		this.cbRxTestDataRate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.cbRxTestDataRate.FormattingEnabled = true;
		this.cbRxTestDataRate.Items.AddRange(new object[3] { "LE1M", "LE2M", "LE Coded" });
		this.cbRxTestDataRate.Location = new System.Drawing.Point(162, 62);
		this.cbRxTestDataRate.Name = "cbRxTestDataRate";
		this.cbRxTestDataRate.Size = new System.Drawing.Size(115, 24);
		this.cbRxTestDataRate.TabIndex = 8;
		this.label12.AutoSize = true;
		this.label12.Location = new System.Drawing.Point(7, 65);
		this.label12.Name = "label12";
		this.label12.Size = new System.Drawing.Size(72, 17);
		this.label12.TabIndex = 0;
		this.label12.Text = "Data Rate";
		this.lblRxTestNoOfPacketsReceived.AutoSize = true;
		this.lblRxTestNoOfPacketsReceived.Location = new System.Drawing.Point(160, 198);
		this.lblRxTestNoOfPacketsReceived.Name = "lblRxTestNoOfPacketsReceived";
		this.lblRxTestNoOfPacketsReceived.Size = new System.Drawing.Size(18, 17);
		this.lblRxTestNoOfPacketsReceived.TabIndex = 13;
		this.lblRxTestNoOfPacketsReceived.Text = "--";
		this.label5.AutoSize = true;
		this.label5.Location = new System.Drawing.Point(8, 198);
		this.label5.Name = "label5";
		this.label5.Size = new System.Drawing.Size(141, 17);
		this.label5.TabIndex = 0;
		this.label5.Text = "# Packets Received :";
		this.btnRxTestStop.Location = new System.Drawing.Point(77, 159);
		this.btnRxTestStop.Name = "btnRxTestStop";
		this.btnRxTestStop.Size = new System.Drawing.Size(255, 25);
		this.btnRxTestStop.TabIndex = 11;
		this.btnRxTestStop.Text = "End Test (Get Number of Packets)";
		this.btnRxTestStop.UseVisualStyleBackColor = true;
		this.btnRxTestStop.Click += new System.EventHandler(OnReceiverTestStopClick);
		this.btnRxTestStart.Location = new System.Drawing.Point(77, 128);
		this.btnRxTestStart.Name = "btnRxTestStart";
		this.btnRxTestStart.Size = new System.Drawing.Size(255, 25);
		this.btnRxTestStart.TabIndex = 10;
		this.btnRxTestStart.Text = "Start";
		this.btnRxTestStart.UseVisualStyleBackColor = true;
		this.btnRxTestStart.Click += new System.EventHandler(OnReceiverTestStartClick);
		this.label4.AutoSize = true;
		this.label4.Location = new System.Drawing.Point(7, 35);
		this.label4.Name = "label4";
		this.label4.Size = new System.Drawing.Size(149, 17);
		this.label4.TabIndex = 0;
		this.label4.Text = "Test Frequency (MHz)";
		this.groupBox2.Controls.Add(this.nudContTxTestFrequency);
		this.groupBox2.Controls.Add(this.btnContTxTestStop);
		this.groupBox2.Controls.Add(this.txtContTxTestPattern);
		this.groupBox2.Controls.Add(this.btnContTxTestStart);
		this.groupBox2.Controls.Add(this.nudContTxTestPatternLength);
		this.groupBox2.Controls.Add(this.cbContTxTestType);
		this.groupBox2.Controls.Add(this.label10);
		this.groupBox2.Controls.Add(this.label9);
		this.groupBox2.Controls.Add(this.label8);
		this.groupBox2.Controls.Add(this.nudContTxTestPowerLevel);
		this.groupBox2.Controls.Add(this.label7);
		this.groupBox2.Controls.Add(this.label6);
		this.groupBox2.Location = new System.Drawing.Point(842, 12);
		this.groupBox2.Name = "groupBox2";
		this.groupBox2.Size = new System.Drawing.Size(295, 227);
		this.groupBox2.TabIndex = 2;
		this.groupBox2.TabStop = false;
		this.groupBox2.Text = "Continuous Tx Tests";
		this.nudContTxTestFrequency.Location = new System.Drawing.Point(161, 33);
		this.nudContTxTestFrequency.Maximum = new decimal(new int[4] { 2480, 0, 0, 0 });
		this.nudContTxTestFrequency.Minimum = new decimal(new int[4] { 2402, 0, 0, 0 });
		this.nudContTxTestFrequency.Name = "nudContTxTestFrequency";
		this.nudContTxTestFrequency.Size = new System.Drawing.Size(115, 22);
		this.nudContTxTestFrequency.TabIndex = 12;
		this.nudContTxTestFrequency.Value = new decimal(new int[4] { 2402, 0, 0, 0 });
		this.btnContTxTestStop.Location = new System.Drawing.Point(152, 194);
		this.btnContTxTestStop.Name = "btnContTxTestStop";
		this.btnContTxTestStop.Size = new System.Drawing.Size(75, 25);
		this.btnContTxTestStop.TabIndex = 18;
		this.btnContTxTestStop.Text = "Stop";
		this.btnContTxTestStop.UseVisualStyleBackColor = true;
		this.btnContTxTestStop.Click += new System.EventHandler(OnContTxTestStopClick);
		this.txtContTxTestPattern.Location = new System.Drawing.Point(161, 164);
		this.txtContTxTestPattern.Name = "txtContTxTestPattern";
		this.txtContTxTestPattern.Size = new System.Drawing.Size(115, 22);
		this.txtContTxTestPattern.TabIndex = 16;
		this.txtContTxTestPattern.Text = "0x00";
		this.btnContTxTestStart.Location = new System.Drawing.Point(64, 194);
		this.btnContTxTestStart.Name = "btnContTxTestStart";
		this.btnContTxTestStart.Size = new System.Drawing.Size(75, 25);
		this.btnContTxTestStart.TabIndex = 17;
		this.btnContTxTestStart.Text = "Start";
		this.btnContTxTestStart.UseVisualStyleBackColor = true;
		this.btnContTxTestStart.Click += new System.EventHandler(OnContTxTestStartClick);
		this.nudContTxTestPatternLength.Location = new System.Drawing.Point(161, 131);
		this.nudContTxTestPatternLength.Maximum = new decimal(new int[4] { 32, 0, 0, 0 });
		this.nudContTxTestPatternLength.Minimum = new decimal(new int[4] { 1, 0, 0, 0 });
		this.nudContTxTestPatternLength.Name = "nudContTxTestPatternLength";
		this.nudContTxTestPatternLength.Size = new System.Drawing.Size(115, 22);
		this.nudContTxTestPatternLength.TabIndex = 15;
		this.nudContTxTestPatternLength.Value = new decimal(new int[4] { 1, 0, 0, 0 });
		this.cbContTxTestType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.cbContTxTestType.FormattingEnabled = true;
		this.cbContTxTestType.Items.AddRange(new object[2] { "LE1M", "LE2M" });
		this.cbContTxTestType.Location = new System.Drawing.Point(161, 97);
		this.cbContTxTestType.Name = "cbContTxTestType";
		this.cbContTxTestType.Size = new System.Drawing.Size(115, 24);
		this.cbContTxTestType.TabIndex = 14;
		this.label10.AutoSize = true;
		this.label10.Location = new System.Drawing.Point(6, 167);
		this.label10.Name = "label10";
		this.label10.Size = new System.Drawing.Size(144, 17);
		this.label10.TabIndex = 0;
		this.label10.Text = "Pattern (Hex UINT32)";
		this.label9.AutoSize = true;
		this.label9.Location = new System.Drawing.Point(6, 133);
		this.label9.Name = "label9";
		this.label9.Size = new System.Drawing.Size(145, 17);
		this.label9.TabIndex = 0;
		this.label9.Text = "Pattern Length (1-32)";
		this.label8.AutoSize = true;
		this.label8.Location = new System.Drawing.Point(6, 100);
		this.label8.Name = "label8";
		this.label8.Size = new System.Drawing.Size(72, 17);
		this.label8.TabIndex = 0;
		this.label8.Text = "Test Type";
		this.nudContTxTestPowerLevel.Location = new System.Drawing.Point(161, 67);
		this.nudContTxTestPowerLevel.Maximum = new decimal(new int[4] { 100000000, 0, 0, 0 });
		this.nudContTxTestPowerLevel.Name = "nudContTxTestPowerLevel";
		this.nudContTxTestPowerLevel.Size = new System.Drawing.Size(115, 22);
		this.nudContTxTestPowerLevel.TabIndex = 13;
		this.nudContTxTestPowerLevel.Value = new decimal(new int[4] { 9, 0, 0, 0 });
		this.label7.AutoSize = true;
		this.label7.Location = new System.Drawing.Point(6, 69);
		this.label7.Name = "label7";
		this.label7.Size = new System.Drawing.Size(115, 17);
		this.label7.TabIndex = 0;
		this.label7.Text = "Power level (0-9)";
		this.label6.AutoSize = true;
		this.label6.Location = new System.Drawing.Point(6, 38);
		this.label6.Name = "label6";
		this.label6.Size = new System.Drawing.Size(149, 17);
		this.label6.TabIndex = 0;
		this.label6.Text = "Test Frequency (MHz)";
		base.AutoScaleDimensions = new System.Drawing.SizeF(8f, 16f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.Controls.Add(this.groupBox2);
		base.Controls.Add(this.gbxReceiverTests);
		base.Controls.Add(this.gbxTransmitterTest);
		base.Name = "LEProdTestUserControl";
		base.Size = new System.Drawing.Size(1149, 247);
		this.gbxTransmitterTest.ResumeLayout(false);
		this.gbxTransmitterTest.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.nudTxTestPayloadLength).EndInit();
		((System.ComponentModel.ISupportInitialize)this.nudTxTestFrequency).EndInit();
		this.gbxReceiverTests.ResumeLayout(false);
		this.gbxReceiverTests.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.nudRxTestFrequency).EndInit();
		this.groupBox2.ResumeLayout(false);
		this.groupBox2.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.nudContTxTestFrequency).EndInit();
		((System.ComponentModel.ISupportInitialize)this.nudContTxTestPatternLength).EndInit();
		((System.ComponentModel.ISupportInitialize)this.nudContTxTestPowerLevel).EndInit();
		base.ResumeLayout(false);
	}
}
