using System;
using System.ComponentModel;
using System.Drawing;
using System.Globalization;
using System.Windows.Forms;
using QCRPG.TSL.BT.Packets;

namespace QCRPG.TSL.BT;

public class BurstModeOption : Form
{
	private ushort payload;

	private string BDAddress = "";

	private bool FixedChannel = true;

	private int[] Channel = new int[5];

	private bool HopChannel;

	private int ConnectionChannel;

	private ProdTestTxBurst.UserFieldsWrapper.PacketTypeEnum PacketType = ProdTestTxBurst.UserFieldsWrapper.PacketTypeEnum.DH5;

	private int PayloadLength;

	private byte LTAddress;

	private byte Power;

	private bool WhiteningEnable;

	private ProdTestTxBurst.UserFieldsWrapper.TxPatternPayloadEnum TransmitPattern = ProdTestTxBurst.UserFieldsWrapper.TxPatternPayloadEnum.PSEUDO_RANDOM;

	private IContainer components;

	private Button okButton;

	private Button cancelButton;

	private Label label6;

	private GroupBox hopModeGroupBox;

	private Label label1;

	private TextBox channelTextBox6;

	private TextBox channelTextBox5;

	private TextBox channelTextBox4;

	private TextBox channelTextBox3;

	private TextBox channelTextBox2;

	private TextBox channelTextBox1;

	private RadioButton hopChannelRadioButton;

	private RadioButton fixedChannelRadioButton;

	private TextBox bdAddressTextBox5;

	private ComboBox packetTypeComboBox;

	private Label label2;

	private TextBox powerTextBox;

	private Label label5;

	private Label label4;

	private CheckBox whiteningCheckBox;

	private ComboBox transmitPatternComboBox;

	private Label packetLengthLabel;

	private TextBox payloadLengthTextBox;

	private Label label3;

	private TextBox ltAddressTextBox;

	private GroupBox groupBox1;

	private GroupBox bdAddGroupBox;

	private TextBox bdAddressTextBox6;

	private TextBox bdAddressTextBox4;

	private TextBox bdAddressTextBox3;

	private TextBox bdAddressTextBox2;

	private TextBox bdAddressTextBox1;

	public string bdAddress
	{
		get
		{
			return BDAddress;
		}
		set
		{
			BDAddress = value;
		}
	}

	public bool fixedChannel
	{
		get
		{
			return FixedChannel;
		}
		set
		{
			FixedChannel = value;
		}
	}

	public int[] channel
	{
		get
		{
			return Channel;
		}
		set
		{
			Channel = value;
		}
	}

	public bool hopChannel
	{
		get
		{
			return HopChannel;
		}
		set
		{
			HopChannel = value;
		}
	}

	public int connectionChannel
	{
		get
		{
			return ConnectionChannel;
		}
		set
		{
			ConnectionChannel = value;
		}
	}

	public ProdTestTxBurst.UserFieldsWrapper.PacketTypeEnum packetType
	{
		get
		{
			return PacketType;
		}
		set
		{
			PacketType = value;
		}
	}

	public int payloadLength
	{
		get
		{
			return PayloadLength;
		}
		set
		{
			PayloadLength = value;
		}
	}

	public byte ltAddress
	{
		get
		{
			return LTAddress;
		}
		set
		{
			LTAddress = value;
		}
	}

	public byte power
	{
		get
		{
			return Power;
		}
		set
		{
			Power = value;
		}
	}

	public bool whiteningEnable
	{
		get
		{
			return WhiteningEnable;
		}
		set
		{
			WhiteningEnable = value;
		}
	}

	public ProdTestTxBurst.UserFieldsWrapper.TxPatternPayloadEnum transmitPattern
	{
		get
		{
			return TransmitPattern;
		}
		set
		{
			TransmitPattern = value;
		}
	}

	public BurstModeOption()
	{
		InitializeComponent();
	}

	private void Test_Load(object sender, EventArgs e)
	{
		packetTypeComboBox.DataSource = Enum.GetValues(typeof(ProdTestTxBurst.UserFieldsWrapper.PacketTypeEnum));
		transmitPatternComboBox.DataSource = Enum.GetValues(typeof(ProdTestTxBurst.UserFieldsWrapper.TxPatternPayloadEnum));
		UpdateTestGUIParas(BDAddress, FixedChannel, Channel, HopChannel, ConnectionChannel, PacketType, PayloadLength, LTAddress, Power, WhiteningEnable, TransmitPattern);
	}

	private void fixedChannelRadioButton_CheckedChanged(object sender, EventArgs e)
	{
		if (fixedChannelRadioButton.Checked)
		{
			channelTextBox1.Enabled = true;
			channelTextBox2.Enabled = true;
			channelTextBox3.Enabled = true;
			channelTextBox4.Enabled = true;
			channelTextBox5.Enabled = true;
			channelTextBox6.Enabled = false;
		}
	}

	private void hopChannelRadioButton_CheckedChanged(object sender, EventArgs e)
	{
		channelTextBox1.Enabled = false;
		channelTextBox2.Enabled = false;
		channelTextBox3.Enabled = false;
		channelTextBox4.Enabled = false;
		channelTextBox5.Enabled = false;
		channelTextBox6.Enabled = true;
	}

	private void packetTypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
	{
		ushort num = 0;
		switch (packetTypeComboBox.SelectedItem.ToString())
		{
		case "NULL":
			packetTypeComboBox.SelectedIndex = 8;
			num = 339;
			break;
		case "POLL":
			packetTypeComboBox.SelectedIndex = 8;
			num = 339;
			break;
		case "FHS":
			packetTypeComboBox.SelectedIndex = 8;
			break;
		case "DM1":
			num = 17;
			break;
		case "DH1":
			num = 27;
			break;
		case "DM3":
			num = 121;
			break;
		case "DH3":
			num = 183;
			break;
		case "DM5":
			num = 224;
			break;
		case "DH5":
			num = 339;
			break;
		case "AUX1":
			num = 29;
			break;
		case "TWO_DH1":
			num = 54;
			break;
		case "TWO_DH3":
			num = 367;
			break;
		case "TWO_DH5":
			num = 679;
			break;
		case "THREE_DH1":
			num = 83;
			break;
		case "THREE_DH3":
			num = 552;
			break;
		case "THREE_DH5":
			num = 1021;
			break;
		case "HV1":
			num = 10;
			break;
		case "HV2":
			num = 20;
			break;
		case "HV3":
			num = 30;
			break;
		case "DV":
			num = 19;
			break;
		case "EV3":
			num = 30;
			break;
		case "EV4":
			num = 120;
			break;
		case "EV5":
			num = 180;
			break;
		case "TWO_EV3":
			num = 60;
			break;
		case "TWO_EV5":
			num = 360;
			break;
		case "THREE_EV3":
			num = 90;
			break;
		case "THREE_EV5":
			num = 540;
			break;
		case "InvalidPacketTypeValue":
			packetTypeComboBox.SelectedIndex = 8;
			num = 339;
			break;
		}
		packetLengthLabel.Text = "Packet Lenth <= " + num;
		ushort.TryParse(payloadLengthTextBox.Text.ToString(), out payload);
		payloadLengthTextBox.Text = num.ToString();
		payload = num;
	}

	private void payloadLengthTextBox_TextChanged(object sender, EventArgs e)
	{
		ushort result = 0;
		ushort.TryParse(payloadLengthTextBox.Text.ToString(), out result);
		payloadLengthTextBox.Text = result.ToString();
	}

	private void transmitPatternComboBox_SelectedIndexChanged(object sender, EventArgs e)
	{
		string text;
		if ((text = transmitPatternComboBox.SelectedItem.ToString()) != null && text == "InvalidTxPatternPayloadValue")
		{
			transmitPatternComboBox.SelectedIndex = 4;
		}
	}

	private void UpdateTestGUIParas(string bdaddress, bool fixedChannel, int[] channel, bool hopChannel, int connectionchannel, ProdTestTxBurst.UserFieldsWrapper.PacketTypeEnum packetType, int payloadlength, int ltaddress, int power, bool whitening, ProdTestTxBurst.UserFieldsWrapper.TxPatternPayloadEnum transmitpattern)
	{
		byte[] array = ParseBluetoothAddress(bdaddress);
		bdAddressTextBox1.Text = array[0].ToString("X2");
		bdAddressTextBox2.Text = array[1].ToString("X2");
		bdAddressTextBox3.Text = array[2].ToString("X2");
		bdAddressTextBox4.Text = array[3].ToString("X2");
		bdAddressTextBox5.Text = array[4].ToString("X2");
		bdAddressTextBox6.Text = array[5].ToString("X2");
		fixedChannelRadioButton.Checked = fixedChannel;
		channelTextBox1.Text = channel[0].ToString();
		channelTextBox2.Text = channel[1].ToString();
		channelTextBox3.Text = channel[2].ToString();
		channelTextBox4.Text = channel[3].ToString();
		channelTextBox5.Text = channel[4].ToString();
		hopChannelRadioButton.Checked = hopChannel;
		channelTextBox6.Text = connectionchannel.ToString();
		packetTypeComboBox.SelectedIndex = (int)packetType;
		payloadLengthTextBox.Text = payloadlength.ToString();
		ltAddressTextBox.Text = ltaddress.ToString();
		powerTextBox.Text = power.ToString();
		whiteningCheckBox.Checked = whitening;
		transmitPatternComboBox.SelectedIndex = (int)transmitpattern;
	}

	private byte[] ParseBluetoothAddress(string btAddress)
	{
		if (btAddress == null)
		{
			throw new Exception("Failed to find Bluetooth address from the config file");
		}
		string[] array = btAddress.Split(',');
		if (array.Length != 6)
		{
			throw new Exception("Bluetooth address listed in the waveform file is not in correct format, Sample : BD,35,9C,BD,35,9C");
		}
		byte[] array2 = new byte[6];
		for (int i = 0; i < 6; i++)
		{
			array2[i] = byte.Parse(array[i], NumberStyles.HexNumber);
		}
		return array2;
	}

	private void okButton_Click(object sender, EventArgs e)
	{
		BDAddress = bdAddressTextBox1.Text + "," + bdAddressTextBox2.Text + "," + bdAddressTextBox3.Text + "," + bdAddressTextBox4.Text + "," + bdAddressTextBox5.Text + "," + bdAddressTextBox6.Text;
		FixedChannel = fixedChannelRadioButton.Checked;
		int.TryParse(channelTextBox1.Text.ToString(), out Channel[0]);
		int.TryParse(channelTextBox2.Text.ToString(), out Channel[1]);
		int.TryParse(channelTextBox3.Text.ToString(), out Channel[2]);
		int.TryParse(channelTextBox4.Text.ToString(), out Channel[3]);
		int.TryParse(channelTextBox5.Text.ToString(), out Channel[4]);
		HopChannel = hopChannelRadioButton.Checked;
		int.TryParse(channelTextBox6.Text.ToString(), out ConnectionChannel);
		PacketType = (ProdTestTxBurst.UserFieldsWrapper.PacketTypeEnum)packetTypeComboBox.SelectedIndex;
		int.TryParse(payloadLengthTextBox.Text.ToString(), out PayloadLength);
		byte.TryParse(ltAddressTextBox.Text.ToString(), out LTAddress);
		byte.TryParse(powerTextBox.Text.ToString(), out Power);
		WhiteningEnable = whiteningCheckBox.Checked;
		TransmitPattern = (ProdTestTxBurst.UserFieldsWrapper.TxPatternPayloadEnum)transmitPatternComboBox.SelectedIndex;
		Hide();
	}

	private void cancelButton_Click(object sender, EventArgs e)
	{
		Hide();
	}

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

	private void InitializeComponent()
	{
		this.okButton = new System.Windows.Forms.Button();
		this.cancelButton = new System.Windows.Forms.Button();
		this.label6 = new System.Windows.Forms.Label();
		this.hopModeGroupBox = new System.Windows.Forms.GroupBox();
		this.label1 = new System.Windows.Forms.Label();
		this.channelTextBox6 = new System.Windows.Forms.TextBox();
		this.channelTextBox5 = new System.Windows.Forms.TextBox();
		this.channelTextBox4 = new System.Windows.Forms.TextBox();
		this.channelTextBox3 = new System.Windows.Forms.TextBox();
		this.channelTextBox2 = new System.Windows.Forms.TextBox();
		this.channelTextBox1 = new System.Windows.Forms.TextBox();
		this.hopChannelRadioButton = new System.Windows.Forms.RadioButton();
		this.fixedChannelRadioButton = new System.Windows.Forms.RadioButton();
		this.bdAddressTextBox5 = new System.Windows.Forms.TextBox();
		this.packetTypeComboBox = new System.Windows.Forms.ComboBox();
		this.label2 = new System.Windows.Forms.Label();
		this.powerTextBox = new System.Windows.Forms.TextBox();
		this.label5 = new System.Windows.Forms.Label();
		this.label4 = new System.Windows.Forms.Label();
		this.whiteningCheckBox = new System.Windows.Forms.CheckBox();
		this.transmitPatternComboBox = new System.Windows.Forms.ComboBox();
		this.packetLengthLabel = new System.Windows.Forms.Label();
		this.payloadLengthTextBox = new System.Windows.Forms.TextBox();
		this.label3 = new System.Windows.Forms.Label();
		this.ltAddressTextBox = new System.Windows.Forms.TextBox();
		this.groupBox1 = new System.Windows.Forms.GroupBox();
		this.bdAddGroupBox = new System.Windows.Forms.GroupBox();
		this.bdAddressTextBox6 = new System.Windows.Forms.TextBox();
		this.bdAddressTextBox4 = new System.Windows.Forms.TextBox();
		this.bdAddressTextBox3 = new System.Windows.Forms.TextBox();
		this.bdAddressTextBox2 = new System.Windows.Forms.TextBox();
		this.bdAddressTextBox1 = new System.Windows.Forms.TextBox();
		this.hopModeGroupBox.SuspendLayout();
		this.groupBox1.SuspendLayout();
		this.bdAddGroupBox.SuspendLayout();
		base.SuspendLayout();
		this.okButton.Location = new System.Drawing.Point(323, 330);
		this.okButton.Name = "okButton";
		this.okButton.Size = new System.Drawing.Size(75, 23);
		this.okButton.TabIndex = 1;
		this.okButton.Text = "OK";
		this.okButton.UseVisualStyleBackColor = true;
		this.okButton.Click += new System.EventHandler(okButton_Click);
		this.cancelButton.Location = new System.Drawing.Point(431, 330);
		this.cancelButton.Name = "cancelButton";
		this.cancelButton.Size = new System.Drawing.Size(75, 23);
		this.cancelButton.TabIndex = 2;
		this.cancelButton.Text = "Cancel";
		this.cancelButton.UseVisualStyleBackColor = true;
		this.cancelButton.Click += new System.EventHandler(cancelButton_Click);
		this.label6.AutoSize = true;
		this.label6.Location = new System.Drawing.Point(506, 259);
		this.label6.Name = "label6";
		this.label6.Size = new System.Drawing.Size(84, 13);
		this.label6.TabIndex = 32;
		this.label6.Text = "Transmit Pattern";
		this.hopModeGroupBox.Controls.Add(this.label1);
		this.hopModeGroupBox.Controls.Add(this.channelTextBox6);
		this.hopModeGroupBox.Controls.Add(this.channelTextBox5);
		this.hopModeGroupBox.Controls.Add(this.channelTextBox4);
		this.hopModeGroupBox.Controls.Add(this.channelTextBox3);
		this.hopModeGroupBox.Controls.Add(this.channelTextBox2);
		this.hopModeGroupBox.Controls.Add(this.channelTextBox1);
		this.hopModeGroupBox.Controls.Add(this.hopChannelRadioButton);
		this.hopModeGroupBox.Controls.Add(this.fixedChannelRadioButton);
		this.hopModeGroupBox.Location = new System.Drawing.Point(13, 119);
		this.hopModeGroupBox.Name = "hopModeGroupBox";
		this.hopModeGroupBox.Size = new System.Drawing.Size(289, 175);
		this.hopModeGroupBox.TabIndex = 20;
		this.hopModeGroupBox.TabStop = false;
		this.hopModeGroupBox.Text = "Hopping Mode (Channel in Decimal)";
		this.label1.AutoSize = true;
		this.label1.Location = new System.Drawing.Point(73, 143);
		this.label1.Name = "label1";
		this.label1.Size = new System.Drawing.Size(167, 13);
		this.label1.TabIndex = 8;
		this.label1.Text = "Create Connection Channel (0-79)";
		this.channelTextBox6.Location = new System.Drawing.Point(6, 140);
		this.channelTextBox6.MaxLength = 2;
		this.channelTextBox6.Name = "channelTextBox6";
		this.channelTextBox6.Size = new System.Drawing.Size(50, 20);
		this.channelTextBox6.TabIndex = 7;
		this.channelTextBox5.Location = new System.Drawing.Point(230, 66);
		this.channelTextBox5.MaxLength = 2;
		this.channelTextBox5.Name = "channelTextBox5";
		this.channelTextBox5.Size = new System.Drawing.Size(50, 20);
		this.channelTextBox5.TabIndex = 5;
		this.channelTextBox4.Location = new System.Drawing.Point(174, 66);
		this.channelTextBox4.MaxLength = 2;
		this.channelTextBox4.Name = "channelTextBox4";
		this.channelTextBox4.Size = new System.Drawing.Size(50, 20);
		this.channelTextBox4.TabIndex = 4;
		this.channelTextBox3.Location = new System.Drawing.Point(118, 66);
		this.channelTextBox3.MaxLength = 2;
		this.channelTextBox3.Name = "channelTextBox3";
		this.channelTextBox3.Size = new System.Drawing.Size(50, 20);
		this.channelTextBox3.TabIndex = 3;
		this.channelTextBox2.Location = new System.Drawing.Point(62, 66);
		this.channelTextBox2.MaxLength = 2;
		this.channelTextBox2.Name = "channelTextBox2";
		this.channelTextBox2.Size = new System.Drawing.Size(50, 20);
		this.channelTextBox2.TabIndex = 2;
		this.channelTextBox1.Location = new System.Drawing.Point(6, 66);
		this.channelTextBox1.MaxLength = 2;
		this.channelTextBox1.Name = "channelTextBox1";
		this.channelTextBox1.Size = new System.Drawing.Size(50, 20);
		this.channelTextBox1.TabIndex = 1;
		this.hopChannelRadioButton.AutoSize = true;
		this.hopChannelRadioButton.Location = new System.Drawing.Point(30, 109);
		this.hopChannelRadioButton.Name = "hopChannelRadioButton";
		this.hopChannelRadioButton.Size = new System.Drawing.Size(169, 17);
		this.hopChannelRadioButton.TabIndex = 6;
		this.hopChannelRadioButton.TabStop = true;
		this.hopChannelRadioButton.Text = "Bluetooth 79-channel Hopping";
		this.hopChannelRadioButton.UseVisualStyleBackColor = true;
		this.fixedChannelRadioButton.AutoSize = true;
		this.fixedChannelRadioButton.Location = new System.Drawing.Point(30, 28);
		this.fixedChannelRadioButton.Name = "fixedChannelRadioButton";
		this.fixedChannelRadioButton.Size = new System.Drawing.Size(133, 17);
		this.fixedChannelRadioButton.TabIndex = 0;
		this.fixedChannelRadioButton.TabStop = true;
		this.fixedChannelRadioButton.Text = "Fixed Channels (0 - 79)";
		this.fixedChannelRadioButton.UseVisualStyleBackColor = true;
		this.bdAddressTextBox5.Location = new System.Drawing.Point(230, 21);
		this.bdAddressTextBox5.MaxLength = 2;
		this.bdAddressTextBox5.Name = "bdAddressTextBox5";
		this.bdAddressTextBox5.Size = new System.Drawing.Size(50, 20);
		this.bdAddressTextBox5.TabIndex = 4;
		this.packetTypeComboBox.FormattingEnabled = true;
		this.packetTypeComboBox.Location = new System.Drawing.Point(384, 42);
		this.packetTypeComboBox.Name = "packetTypeComboBox";
		this.packetTypeComboBox.Size = new System.Drawing.Size(116, 21);
		this.packetTypeComboBox.TabIndex = 1;
		this.packetTypeComboBox.SelectedIndexChanged += new System.EventHandler(packetTypeComboBox_SelectedIndexChanged);
		this.label2.AutoSize = true;
		this.label2.Location = new System.Drawing.Point(506, 45);
		this.label2.Name = "label2";
		this.label2.Size = new System.Drawing.Size(68, 13);
		this.label2.TabIndex = 22;
		this.label2.Text = "Packet Type";
		this.powerTextBox.Location = new System.Drawing.Point(384, 187);
		this.powerTextBox.MaxLength = 2;
		this.powerTextBox.Name = "powerTextBox";
		this.powerTextBox.Size = new System.Drawing.Size(110, 20);
		this.powerTextBox.TabIndex = 5;
		this.powerTextBox.Text = "9";
		this.label5.AutoSize = true;
		this.label5.Location = new System.Drawing.Point(506, 190);
		this.label5.Name = "label5";
		this.label5.Size = new System.Drawing.Size(61, 13);
		this.label5.TabIndex = 29;
		this.label5.Text = "Power (0-9)";
		this.label4.AutoSize = true;
		this.label4.Location = new System.Drawing.Point(506, 153);
		this.label4.Name = "label4";
		this.label4.Size = new System.Drawing.Size(61, 13);
		this.label4.TabIndex = 27;
		this.label4.Text = "LT Address";
		this.whiteningCheckBox.AutoSize = true;
		this.whiteningCheckBox.Location = new System.Drawing.Point(394, 222);
		this.whiteningCheckBox.Name = "whiteningCheckBox";
		this.whiteningCheckBox.Size = new System.Drawing.Size(116, 17);
		this.whiteningCheckBox.TabIndex = 6;
		this.whiteningCheckBox.Text = "Whitening Enabled";
		this.whiteningCheckBox.UseVisualStyleBackColor = true;
		this.transmitPatternComboBox.FormattingEnabled = true;
		this.transmitPatternComboBox.ItemHeight = 13;
		this.transmitPatternComboBox.Location = new System.Drawing.Point(384, 256);
		this.transmitPatternComboBox.Name = "transmitPatternComboBox";
		this.transmitPatternComboBox.Size = new System.Drawing.Size(116, 21);
		this.transmitPatternComboBox.TabIndex = 7;
		this.transmitPatternComboBox.SelectedIndexChanged += new System.EventHandler(transmitPatternComboBox_SelectedIndexChanged);
		this.packetLengthLabel.AutoSize = true;
		this.packetLengthLabel.Location = new System.Drawing.Point(400, 77);
		this.packetLengthLabel.Name = "packetLengthLabel";
		this.packetLengthLabel.Size = new System.Drawing.Size(107, 13);
		this.packetLengthLabel.TabIndex = 2;
		this.packetLengthLabel.Text = "Packet Lenth <= 339";
		this.payloadLengthTextBox.Location = new System.Drawing.Point(384, 106);
		this.payloadLengthTextBox.Name = "payloadLengthTextBox";
		this.payloadLengthTextBox.Size = new System.Drawing.Size(110, 20);
		this.payloadLengthTextBox.TabIndex = 3;
		this.payloadLengthTextBox.Text = "339";
		this.payloadLengthTextBox.TextChanged += new System.EventHandler(payloadLengthTextBox_TextChanged);
		this.label3.AutoSize = true;
		this.label3.Location = new System.Drawing.Point(506, 109);
		this.label3.Name = "label3";
		this.label3.Size = new System.Drawing.Size(81, 13);
		this.label3.TabIndex = 25;
		this.label3.Text = "Payload Length";
		this.ltAddressTextBox.Location = new System.Drawing.Point(384, 150);
		this.ltAddressTextBox.MaxLength = 1;
		this.ltAddressTextBox.Name = "ltAddressTextBox";
		this.ltAddressTextBox.Size = new System.Drawing.Size(110, 20);
		this.ltAddressTextBox.TabIndex = 4;
		this.ltAddressTextBox.Text = "0";
		this.groupBox1.Controls.Add(this.bdAddGroupBox);
		this.groupBox1.Controls.Add(this.ltAddressTextBox);
		this.groupBox1.Controls.Add(this.label3);
		this.groupBox1.Controls.Add(this.payloadLengthTextBox);
		this.groupBox1.Controls.Add(this.packetLengthLabel);
		this.groupBox1.Controls.Add(this.transmitPatternComboBox);
		this.groupBox1.Controls.Add(this.whiteningCheckBox);
		this.groupBox1.Controls.Add(this.label4);
		this.groupBox1.Controls.Add(this.label5);
		this.groupBox1.Controls.Add(this.powerTextBox);
		this.groupBox1.Controls.Add(this.label2);
		this.groupBox1.Controls.Add(this.packetTypeComboBox);
		this.groupBox1.Controls.Add(this.hopModeGroupBox);
		this.groupBox1.Controls.Add(this.label6);
		this.groupBox1.Location = new System.Drawing.Point(12, 12);
		this.groupBox1.Name = "groupBox1";
		this.groupBox1.Size = new System.Drawing.Size(606, 312);
		this.groupBox1.TabIndex = 0;
		this.groupBox1.TabStop = false;
		this.bdAddGroupBox.Controls.Add(this.bdAddressTextBox6);
		this.bdAddGroupBox.Controls.Add(this.bdAddressTextBox4);
		this.bdAddGroupBox.Controls.Add(this.bdAddressTextBox3);
		this.bdAddGroupBox.Controls.Add(this.bdAddressTextBox2);
		this.bdAddGroupBox.Controls.Add(this.bdAddressTextBox1);
		this.bdAddGroupBox.Controls.Add(this.bdAddressTextBox5);
		this.bdAddGroupBox.Location = new System.Drawing.Point(13, 19);
		this.bdAddGroupBox.Name = "bdAddGroupBox";
		this.bdAddGroupBox.Size = new System.Drawing.Size(345, 54);
		this.bdAddGroupBox.TabIndex = 0;
		this.bdAddGroupBox.TabStop = false;
		this.bdAddGroupBox.Text = "Test BD Address (Hex: MSB -> LSB)";
		this.bdAddressTextBox6.Location = new System.Drawing.Point(286, 21);
		this.bdAddressTextBox6.MaxLength = 2;
		this.bdAddressTextBox6.Name = "bdAddressTextBox6";
		this.bdAddressTextBox6.Size = new System.Drawing.Size(50, 20);
		this.bdAddressTextBox6.TabIndex = 5;
		this.bdAddressTextBox4.Location = new System.Drawing.Point(174, 21);
		this.bdAddressTextBox4.MaxLength = 2;
		this.bdAddressTextBox4.Name = "bdAddressTextBox4";
		this.bdAddressTextBox4.Size = new System.Drawing.Size(50, 20);
		this.bdAddressTextBox4.TabIndex = 3;
		this.bdAddressTextBox3.Location = new System.Drawing.Point(118, 21);
		this.bdAddressTextBox3.MaxLength = 2;
		this.bdAddressTextBox3.Name = "bdAddressTextBox3";
		this.bdAddressTextBox3.Size = new System.Drawing.Size(50, 20);
		this.bdAddressTextBox3.TabIndex = 2;
		this.bdAddressTextBox2.Location = new System.Drawing.Point(62, 21);
		this.bdAddressTextBox2.MaxLength = 2;
		this.bdAddressTextBox2.Name = "bdAddressTextBox2";
		this.bdAddressTextBox2.Size = new System.Drawing.Size(50, 20);
		this.bdAddressTextBox2.TabIndex = 1;
		this.bdAddressTextBox1.Location = new System.Drawing.Point(6, 21);
		this.bdAddressTextBox1.MaxLength = 2;
		this.bdAddressTextBox1.Name = "bdAddressTextBox1";
		this.bdAddressTextBox1.Size = new System.Drawing.Size(50, 20);
		this.bdAddressTextBox1.TabIndex = 0;
		base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(630, 360);
		base.Controls.Add(this.cancelButton);
		base.Controls.Add(this.okButton);
		base.Controls.Add(this.groupBox1);
		base.Name = "BurstModeOption";
		base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
		this.Text = "Burst Mode Option";
		base.Load += new System.EventHandler(Test_Load);
		this.hopModeGroupBox.ResumeLayout(false);
		this.hopModeGroupBox.PerformLayout();
		this.groupBox1.ResumeLayout(false);
		this.groupBox1.PerformLayout();
		this.bdAddGroupBox.ResumeLayout(false);
		this.bdAddGroupBox.PerformLayout();
		base.ResumeLayout(false);
	}
}
