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

namespace QCRPG.TSL.ZigBee;

public class ZigBeeChooseUserDataOption : Form
{
	private int channelID;

	private long dstAddress;

	private long localAddress;

	private DutaddressmodeEnum localAddressMode = DutaddressmodeEnum.ShortAddress_16_BIT;

	private DutaddressmodeEnum dstAddressMode = DutaddressmodeEnum.ShortAddress_16_BIT;

	private int dstPanId;

	private int msduLength;

	private int msduHandle;

	private int txOptions;

	private bool continuousData;

	private int numPacketsToSend;

	private bool sequentialDataPattern;

	private int dataPattern;

	private int localPanId;

	private bool sequentialDataEnabled;

	private bool checkReceiveDataIntegrity;

	private bool ackTx;

	private bool gtsTx;

	private bool indirectTx;

	private bool associatedTest;

	private IContainer components;

	private TextBox channelIDTextBox;

	private Label channelIDLabel;

	private Label dstAddressLabel;

	private TextBox dstAddressTextBox;

	private Label dstAddressModeLabel;

	private ComboBox dstAddrModeComboBox;

	private Label dstPanIDLabel;

	private TextBox dstPanIDTextBox;

	private Label msduLengthLabel;

	private TextBox msduLengthTextBox;

	private Label msduHandleLabel;

	private TextBox msduHandleTextBox;

	private Button okButton;

	private Button cancelButton;

	private GroupBox groupBoxConnection;

	private GroupBox groupBoxDstAddr;

	private GroupBox groupBoxData;

	private TextBox dataPatternTextBox;

	private Label dataPatternLabel;

	private CheckBox sequentialDataPatternCheckBox;

	private GroupBox groupBox2;

	private TextBox localAddressTextBox;

	private Label localAddrModeLabel;

	private ComboBox localAddrModeComboBox;

	private Label localAddressLabel;

	private GroupBox groupBox3;

	private GroupBox groupBox4;

	private TextBox localPanIDTextBox;

	private Label localPanIDLabel;

	private GroupBox groupBox5;

	private CheckBox checkReceiveDataIntegrityCheckBox;

	private TextBox numPacketsTextBox;

	private Label numPacketsLabel;

	private CheckBox continuousDataCheckBox;

	private GroupBox groupBox1;

	private CheckBox indirectTxCheckBox;

	private CheckBox gtsTxCheckBox;

	private CheckBox ackTxCheckBox;

	private GroupBox groupBox6;

	private CheckBox nonAssociatedTestCheckBox;

	private CheckBox associatedTestCheckBox;

	public int ChannelID
	{
		get
		{
			return channelID;
		}
		set
		{
			channelID = value;
		}
	}

	public long DstAddress
	{
		get
		{
			return dstAddress;
		}
		set
		{
			dstAddress = value;
		}
	}

	public long LocalAddress
	{
		get
		{
			return localAddress;
		}
		set
		{
			localAddress = value;
		}
	}

	public DutaddressmodeEnum LocalAddressMode
	{
		get
		{
			return localAddressMode;
		}
		set
		{
			localAddressMode = value;
		}
	}

	public DutaddressmodeEnum DstAddressMode
	{
		get
		{
			return dstAddressMode;
		}
		set
		{
			dstAddressMode = value;
		}
	}

	public int DstPanId
	{
		get
		{
			return dstPanId;
		}
		set
		{
			dstPanId = value;
		}
	}

	public int MsduLength
	{
		get
		{
			return msduLength;
		}
		set
		{
			msduLength = value;
		}
	}

	public int MsduHandle
	{
		get
		{
			return msduHandle;
		}
		set
		{
			msduHandle = value;
		}
	}

	public int TxOptions
	{
		get
		{
			return txOptions;
		}
		set
		{
			txOptions = value;
		}
	}

	public bool ContinuousData
	{
		get
		{
			return continuousData;
		}
		set
		{
			continuousData = value;
		}
	}

	public int NumPacketsToSend
	{
		get
		{
			return numPacketsToSend;
		}
		set
		{
			numPacketsToSend = value;
		}
	}

	public bool SequentialDataPattern
	{
		get
		{
			return sequentialDataPattern;
		}
		set
		{
			sequentialDataPattern = value;
		}
	}

	public int DataPattern
	{
		get
		{
			return dataPattern;
		}
		set
		{
			dataPattern = value;
		}
	}

	public int LocalPanId
	{
		get
		{
			return localPanId;
		}
		set
		{
			localPanId = value;
		}
	}

	public bool SequentialDataEnabled
	{
		get
		{
			return sequentialDataEnabled;
		}
		set
		{
			sequentialDataEnabled = value;
		}
	}

	public bool CheckReceiveDataIntegrity
	{
		get
		{
			return checkReceiveDataIntegrity;
		}
		set
		{
			checkReceiveDataIntegrity = value;
		}
	}

	public bool AckTx
	{
		get
		{
			return ackTx;
		}
		set
		{
			ackTx = value;
		}
	}

	public bool GtsTx
	{
		get
		{
			return gtsTx;
		}
		set
		{
			gtsTx = value;
		}
	}

	public bool IndirectTx
	{
		get
		{
			return indirectTx;
		}
		set
		{
			indirectTx = value;
		}
	}

	public bool AssociatedTest
	{
		get
		{
			return associatedTest;
		}
		set
		{
			associatedTest = value;
		}
	}

	public ZigBeeChooseUserDataOption()
	{
		InitializeComponent();
	}

	private void okButton_Click(object sender, EventArgs e)
	{
		int.TryParse(channelIDTextBox.Text, NumberStyles.HexNumber, null, out channelID);
		dstAddressMode = (DutaddressmodeEnum)dstAddrModeComboBox.SelectedIndex;
		long.TryParse(dstAddressTextBox.Text, NumberStyles.HexNumber, null, out dstAddress);
		int.TryParse(dstPanIDTextBox.Text, NumberStyles.HexNumber, null, out dstPanId);
		int.TryParse(msduLengthTextBox.Text, NumberStyles.HexNumber, null, out msduLength);
		int.TryParse(msduHandleTextBox.Text, NumberStyles.HexNumber, null, out msduHandle);
		localAddressMode = (DutaddressmodeEnum)localAddrModeComboBox.SelectedIndex;
		long.TryParse(localAddressTextBox.Text, NumberStyles.HexNumber, null, out localAddress);
		int.TryParse(localPanIDTextBox.Text, NumberStyles.HexNumber, null, out localPanId);
		int.TryParse(dataPatternTextBox.Text, NumberStyles.HexNumber, null, out dataPattern);
		int.TryParse(numPacketsTextBox.Text, NumberStyles.Integer, null, out numPacketsToSend);
		sequentialDataEnabled = sequentialDataPatternCheckBox.Checked;
		checkReceiveDataIntegrity = checkReceiveDataIntegrityCheckBox.Checked;
		continuousData = continuousDataCheckBox.Checked;
		ackTx = ackTxCheckBox.Checked;
		gtsTx = gtsTxCheckBox.Checked;
		indirectTx = indirectTxCheckBox.Checked;
		associatedTest = associatedTestCheckBox.Checked;
	}

	private void ZigBeeChooseUserDataOption_Load(object sender, EventArgs e)
	{
		localAddrModeComboBox.DataSource = Enum.GetValues(typeof(DutaddressmodeEnum));
		localAddrModeComboBox.SelectedIndex = (int)LocalAddressMode;
		dstAddrModeComboBox.DataSource = Enum.GetValues(typeof(DutaddressmodeEnum));
		dstAddrModeComboBox.SelectedIndex = (int)DstAddressMode;
		channelIDTextBox.Text = channelID.ToString("X2");
		dstPanIDTextBox.Text = dstPanId.ToString("X4");
		localPanIDTextBox.Text = localPanId.ToString("X4");
		msduLengthTextBox.Text = msduLength.ToString("X2");
		msduHandleTextBox.Text = msduHandle.ToString("X2");
		dataPatternTextBox.Text = dataPattern.ToString("X2");
		numPacketsTextBox.Text = numPacketsToSend.ToString();
		if (localAddressMode == DutaddressmodeEnum.ShortAddress_16_BIT)
		{
			localAddressTextBox.Text = localAddress.ToString("X4");
		}
		else
		{
			localAddressTextBox.Text = localAddress.ToString("X16");
		}
		if (dstAddressMode == DutaddressmodeEnum.ShortAddress_16_BIT)
		{
			dstAddressTextBox.Text = dstAddress.ToString("X4");
		}
		else
		{
			dstAddressTextBox.Text = dstAddress.ToString("X16");
		}
		sequentialDataPatternCheckBox.Checked = sequentialDataEnabled;
		checkReceiveDataIntegrityCheckBox.Checked = checkReceiveDataIntegrity;
		continuousDataCheckBox.Checked = continuousData;
		ackTxCheckBox.Checked = ackTx;
		gtsTxCheckBox.Checked = gtsTx;
		indirectTxCheckBox.Checked = indirectTx;
		associatedTestCheckBox.Checked = associatedTest;
		nonAssociatedTestCheckBox.Checked = !associatedTest;
	}

	private void continuousDataCheckBox_CheckedChanged(object sender, EventArgs e)
	{
		if (continuousDataCheckBox.Checked)
		{
			numPacketsTextBox.Enabled = false;
			continuousData = true;
		}
		else
		{
			numPacketsTextBox.Enabled = true;
			continuousData = false;
		}
	}

	private void associatedTestCheckBox_CheckedChanged(object sender, EventArgs e)
	{
		if (associatedTestCheckBox.Checked)
		{
			nonAssociatedTestCheckBox.Checked = false;
			channelIDTextBox.Enabled = false;
			dstPanIDTextBox.Enabled = false;
			dstAddressTextBox.Enabled = false;
			dstAddrModeComboBox.Enabled = false;
		}
		else if (!nonAssociatedTestCheckBox.Checked)
		{
			associatedTestCheckBox.Checked = true;
		}
	}

	private void nonAssociatedTestCheckBox_CheckedChanged(object sender, EventArgs e)
	{
		if (nonAssociatedTestCheckBox.Checked)
		{
			associatedTestCheckBox.Checked = false;
			channelIDTextBox.Enabled = true;
			dstPanIDTextBox.Enabled = true;
			dstAddressTextBox.Enabled = true;
			dstAddrModeComboBox.Enabled = true;
		}
		else if (!associatedTestCheckBox.Checked)
		{
			nonAssociatedTestCheckBox.Checked = true;
		}
	}

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

	private void InitializeComponent()
	{
		this.channelIDTextBox = new System.Windows.Forms.TextBox();
		this.channelIDLabel = new System.Windows.Forms.Label();
		this.dstAddressLabel = new System.Windows.Forms.Label();
		this.dstAddressTextBox = new System.Windows.Forms.TextBox();
		this.dstAddressModeLabel = new System.Windows.Forms.Label();
		this.dstAddrModeComboBox = new System.Windows.Forms.ComboBox();
		this.dstPanIDLabel = new System.Windows.Forms.Label();
		this.dstPanIDTextBox = new System.Windows.Forms.TextBox();
		this.msduLengthLabel = new System.Windows.Forms.Label();
		this.msduLengthTextBox = new System.Windows.Forms.TextBox();
		this.msduHandleLabel = new System.Windows.Forms.Label();
		this.msduHandleTextBox = new System.Windows.Forms.TextBox();
		this.okButton = new System.Windows.Forms.Button();
		this.cancelButton = new System.Windows.Forms.Button();
		this.groupBoxConnection = new System.Windows.Forms.GroupBox();
		this.localPanIDTextBox = new System.Windows.Forms.TextBox();
		this.localPanIDLabel = new System.Windows.Forms.Label();
		this.groupBox2 = new System.Windows.Forms.GroupBox();
		this.localAddressTextBox = new System.Windows.Forms.TextBox();
		this.localAddrModeLabel = new System.Windows.Forms.Label();
		this.localAddrModeComboBox = new System.Windows.Forms.ComboBox();
		this.localAddressLabel = new System.Windows.Forms.Label();
		this.groupBoxDstAddr = new System.Windows.Forms.GroupBox();
		this.groupBoxData = new System.Windows.Forms.GroupBox();
		this.groupBox1 = new System.Windows.Forms.GroupBox();
		this.indirectTxCheckBox = new System.Windows.Forms.CheckBox();
		this.gtsTxCheckBox = new System.Windows.Forms.CheckBox();
		this.ackTxCheckBox = new System.Windows.Forms.CheckBox();
		this.numPacketsTextBox = new System.Windows.Forms.TextBox();
		this.numPacketsLabel = new System.Windows.Forms.Label();
		this.continuousDataCheckBox = new System.Windows.Forms.CheckBox();
		this.sequentialDataPatternCheckBox = new System.Windows.Forms.CheckBox();
		this.dataPatternTextBox = new System.Windows.Forms.TextBox();
		this.dataPatternLabel = new System.Windows.Forms.Label();
		this.groupBox3 = new System.Windows.Forms.GroupBox();
		this.groupBox4 = new System.Windows.Forms.GroupBox();
		this.groupBox5 = new System.Windows.Forms.GroupBox();
		this.checkReceiveDataIntegrityCheckBox = new System.Windows.Forms.CheckBox();
		this.groupBox6 = new System.Windows.Forms.GroupBox();
		this.associatedTestCheckBox = new System.Windows.Forms.CheckBox();
		this.nonAssociatedTestCheckBox = new System.Windows.Forms.CheckBox();
		this.groupBoxConnection.SuspendLayout();
		this.groupBox2.SuspendLayout();
		this.groupBoxDstAddr.SuspendLayout();
		this.groupBoxData.SuspendLayout();
		this.groupBox1.SuspendLayout();
		this.groupBox3.SuspendLayout();
		this.groupBox4.SuspendLayout();
		this.groupBox5.SuspendLayout();
		this.groupBox6.SuspendLayout();
		base.SuspendLayout();
		this.channelIDTextBox.Location = new System.Drawing.Point(116, 19);
		this.channelIDTextBox.Name = "channelIDTextBox";
		this.channelIDTextBox.Size = new System.Drawing.Size(100, 20);
		this.channelIDTextBox.TabIndex = 0;
		this.channelIDLabel.AutoSize = true;
		this.channelIDLabel.Location = new System.Drawing.Point(10, 22);
		this.channelIDLabel.Name = "channelIDLabel";
		this.channelIDLabel.Size = new System.Drawing.Size(86, 13);
		this.channelIDLabel.TabIndex = 1;
		this.channelIDLabel.Text = "Channel ID (hex)";
		this.dstAddressLabel.AutoSize = true;
		this.dstAddressLabel.Location = new System.Drawing.Point(203, 22);
		this.dstAddressLabel.Name = "dstAddressLabel";
		this.dstAddressLabel.Size = new System.Drawing.Size(100, 13);
		this.dstAddressLabel.TabIndex = 2;
		this.dstAddressLabel.Text = "Destination address";
		this.dstAddressTextBox.Location = new System.Drawing.Point(301, 19);
		this.dstAddressTextBox.Name = "dstAddressTextBox";
		this.dstAddressTextBox.Size = new System.Drawing.Size(117, 20);
		this.dstAddressTextBox.TabIndex = 3;
		this.dstAddressModeLabel.AutoSize = true;
		this.dstAddressModeLabel.Location = new System.Drawing.Point(1, 22);
		this.dstAddressModeLabel.Name = "dstAddressModeLabel";
		this.dstAddressModeLabel.Size = new System.Drawing.Size(75, 13);
		this.dstAddressModeLabel.TabIndex = 6;
		this.dstAddressModeLabel.Text = "Address Mode";
		this.dstAddrModeComboBox.FormattingEnabled = true;
		this.dstAddrModeComboBox.Location = new System.Drawing.Point(77, 19);
		this.dstAddrModeComboBox.Name = "dstAddrModeComboBox";
		this.dstAddrModeComboBox.Size = new System.Drawing.Size(121, 21);
		this.dstAddrModeComboBox.TabIndex = 7;
		this.dstPanIDLabel.AutoSize = true;
		this.dstPanIDLabel.Location = new System.Drawing.Point(16, 19);
		this.dstPanIDLabel.Name = "dstPanIDLabel";
		this.dstPanIDLabel.Size = new System.Drawing.Size(99, 13);
		this.dstPanIDLabel.TabIndex = 8;
		this.dstPanIDLabel.Text = "Destination PAN ID";
		this.dstPanIDTextBox.Location = new System.Drawing.Point(117, 16);
		this.dstPanIDTextBox.Name = "dstPanIDTextBox";
		this.dstPanIDTextBox.Size = new System.Drawing.Size(100, 20);
		this.dstPanIDTextBox.TabIndex = 9;
		this.msduLengthLabel.AutoSize = true;
		this.msduLengthLabel.Location = new System.Drawing.Point(19, 19);
		this.msduLengthLabel.Name = "msduLengthLabel";
		this.msduLengthLabel.Size = new System.Drawing.Size(75, 13);
		this.msduLengthLabel.TabIndex = 10;
		this.msduLengthLabel.Text = "MSDU Length";
		this.msduLengthTextBox.Location = new System.Drawing.Point(142, 18);
		this.msduLengthTextBox.Name = "msduLengthTextBox";
		this.msduLengthTextBox.Size = new System.Drawing.Size(54, 20);
		this.msduLengthTextBox.TabIndex = 11;
		this.msduLengthTextBox.Text = "116";
		this.msduHandleLabel.AutoSize = true;
		this.msduHandleLabel.Location = new System.Drawing.Point(238, 19);
		this.msduHandleLabel.Name = "msduHandleLabel";
		this.msduHandleLabel.Size = new System.Drawing.Size(76, 13);
		this.msduHandleLabel.TabIndex = 12;
		this.msduHandleLabel.Text = "MSDU Handle";
		this.msduHandleTextBox.Location = new System.Drawing.Point(317, 16);
		this.msduHandleTextBox.Name = "msduHandleTextBox";
		this.msduHandleTextBox.Size = new System.Drawing.Size(100, 20);
		this.msduHandleTextBox.TabIndex = 13;
		this.msduHandleTextBox.Text = "01";
		this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
		this.okButton.Location = new System.Drawing.Point(97, 459);
		this.okButton.Name = "okButton";
		this.okButton.Size = new System.Drawing.Size(75, 23);
		this.okButton.TabIndex = 16;
		this.okButton.Text = "OK";
		this.okButton.UseVisualStyleBackColor = true;
		this.okButton.Click += new System.EventHandler(okButton_Click);
		this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
		this.cancelButton.Location = new System.Drawing.Point(281, 459);
		this.cancelButton.Name = "cancelButton";
		this.cancelButton.Size = new System.Drawing.Size(75, 23);
		this.cancelButton.TabIndex = 17;
		this.cancelButton.Text = "Cancel";
		this.cancelButton.UseVisualStyleBackColor = true;
		this.groupBoxConnection.Controls.Add(this.localPanIDTextBox);
		this.groupBoxConnection.Controls.Add(this.localPanIDLabel);
		this.groupBoxConnection.Controls.Add(this.channelIDTextBox);
		this.groupBoxConnection.Controls.Add(this.groupBox2);
		this.groupBoxConnection.Controls.Add(this.channelIDLabel);
		this.groupBoxConnection.Location = new System.Drawing.Point(12, 53);
		this.groupBoxConnection.Name = "groupBoxConnection";
		this.groupBoxConnection.Size = new System.Drawing.Size(436, 98);
		this.groupBoxConnection.TabIndex = 18;
		this.groupBoxConnection.TabStop = false;
		this.groupBoxConnection.Text = "Common (Tx/Rx) settings";
		this.localPanIDTextBox.Location = new System.Drawing.Point(324, 19);
		this.localPanIDTextBox.Name = "localPanIDTextBox";
		this.localPanIDTextBox.Size = new System.Drawing.Size(100, 20);
		this.localPanIDTextBox.TabIndex = 15;
		this.localPanIDLabel.AutoSize = true;
		this.localPanIDLabel.Location = new System.Drawing.Point(261, 22);
		this.localPanIDLabel.Name = "localPanIDLabel";
		this.localPanIDLabel.Size = new System.Drawing.Size(43, 13);
		this.localPanIDLabel.TabIndex = 14;
		this.localPanIDLabel.Text = "PAN ID";
		this.groupBox2.Controls.Add(this.localAddressTextBox);
		this.groupBox2.Controls.Add(this.localAddrModeLabel);
		this.groupBox2.Controls.Add(this.localAddrModeComboBox);
		this.groupBox2.Controls.Add(this.localAddressLabel);
		this.groupBox2.Location = new System.Drawing.Point(9, 45);
		this.groupBox2.Name = "groupBox2";
		this.groupBox2.Size = new System.Drawing.Size(421, 48);
		this.groupBox2.TabIndex = 20;
		this.groupBox2.TabStop = false;
		this.groupBox2.Text = "Local Address";
		this.localAddressTextBox.Location = new System.Drawing.Point(298, 19);
		this.localAddressTextBox.Name = "localAddressTextBox";
		this.localAddressTextBox.Size = new System.Drawing.Size(119, 20);
		this.localAddressTextBox.TabIndex = 3;
		this.localAddrModeLabel.AutoSize = true;
		this.localAddrModeLabel.Location = new System.Drawing.Point(4, 22);
		this.localAddrModeLabel.Name = "localAddrModeLabel";
		this.localAddrModeLabel.Size = new System.Drawing.Size(75, 13);
		this.localAddrModeLabel.TabIndex = 6;
		this.localAddrModeLabel.Text = "Address Mode";
		this.localAddrModeComboBox.FormattingEnabled = true;
		this.localAddrModeComboBox.Location = new System.Drawing.Point(88, 18);
		this.localAddrModeComboBox.Name = "localAddrModeComboBox";
		this.localAddrModeComboBox.Size = new System.Drawing.Size(121, 21);
		this.localAddrModeComboBox.TabIndex = 7;
		this.localAddressLabel.AutoSize = true;
		this.localAddressLabel.Location = new System.Drawing.Point(225, 22);
		this.localAddressLabel.Name = "localAddressLabel";
		this.localAddressLabel.Size = new System.Drawing.Size(73, 13);
		this.localAddressLabel.TabIndex = 2;
		this.localAddressLabel.Text = "Local address";
		this.groupBoxDstAddr.Controls.Add(this.dstAddressTextBox);
		this.groupBoxDstAddr.Controls.Add(this.dstAddressModeLabel);
		this.groupBoxDstAddr.Controls.Add(this.dstAddrModeComboBox);
		this.groupBoxDstAddr.Controls.Add(this.dstAddressLabel);
		this.groupBoxDstAddr.Location = new System.Drawing.Point(6, 19);
		this.groupBoxDstAddr.Name = "groupBoxDstAddr";
		this.groupBoxDstAddr.Size = new System.Drawing.Size(421, 48);
		this.groupBoxDstAddr.TabIndex = 19;
		this.groupBoxDstAddr.TabStop = false;
		this.groupBoxDstAddr.Text = "Destination Address";
		this.groupBoxData.Controls.Add(this.groupBox1);
		this.groupBoxData.Controls.Add(this.numPacketsTextBox);
		this.groupBoxData.Controls.Add(this.numPacketsLabel);
		this.groupBoxData.Controls.Add(this.continuousDataCheckBox);
		this.groupBoxData.Controls.Add(this.sequentialDataPatternCheckBox);
		this.groupBoxData.Controls.Add(this.msduLengthTextBox);
		this.groupBoxData.Controls.Add(this.dataPatternTextBox);
		this.groupBoxData.Controls.Add(this.msduLengthLabel);
		this.groupBoxData.Controls.Add(this.dataPatternLabel);
		this.groupBoxData.Location = new System.Drawing.Point(6, 121);
		this.groupBoxData.Name = "groupBoxData";
		this.groupBoxData.Size = new System.Drawing.Size(421, 115);
		this.groupBoxData.TabIndex = 20;
		this.groupBoxData.TabStop = false;
		this.groupBoxData.Text = "Data Options";
		this.groupBox1.Controls.Add(this.indirectTxCheckBox);
		this.groupBox1.Controls.Add(this.gtsTxCheckBox);
		this.groupBox1.Controls.Add(this.ackTxCheckBox);
		this.groupBox1.Location = new System.Drawing.Point(323, 11);
		this.groupBox1.Name = "groupBox1";
		this.groupBox1.Size = new System.Drawing.Size(92, 79);
		this.groupBox1.TabIndex = 22;
		this.groupBox1.TabStop = false;
		this.groupBox1.Text = "Tx Options";
		this.indirectTxCheckBox.AutoSize = true;
		this.indirectTxCheckBox.Location = new System.Drawing.Point(6, 58);
		this.indirectTxCheckBox.Name = "indirectTxCheckBox";
		this.indirectTxCheckBox.Size = new System.Drawing.Size(73, 17);
		this.indirectTxCheckBox.TabIndex = 2;
		this.indirectTxCheckBox.Text = "IndirectTx";
		this.indirectTxCheckBox.UseVisualStyleBackColor = true;
		this.gtsTxCheckBox.AutoSize = true;
		this.gtsTxCheckBox.Location = new System.Drawing.Point(6, 38);
		this.gtsTxCheckBox.Name = "gtsTxCheckBox";
		this.gtsTxCheckBox.Size = new System.Drawing.Size(60, 17);
		this.gtsTxCheckBox.TabIndex = 1;
		this.gtsTxCheckBox.Text = "GTSTx";
		this.gtsTxCheckBox.UseVisualStyleBackColor = true;
		this.ackTxCheckBox.AutoSize = true;
		this.ackTxCheckBox.Location = new System.Drawing.Point(6, 19);
		this.ackTxCheckBox.Name = "ackTxCheckBox";
		this.ackTxCheckBox.Size = new System.Drawing.Size(57, 17);
		this.ackTxCheckBox.TabIndex = 0;
		this.ackTxCheckBox.Text = "AckTx";
		this.ackTxCheckBox.UseVisualStyleBackColor = true;
		this.numPacketsTextBox.BackColor = System.Drawing.SystemColors.Window;
		this.numPacketsTextBox.Enabled = false;
		this.numPacketsTextBox.Location = new System.Drawing.Point(142, 70);
		this.numPacketsTextBox.Name = "numPacketsTextBox";
		this.numPacketsTextBox.Size = new System.Drawing.Size(54, 20);
		this.numPacketsTextBox.TabIndex = 21;
		this.numPacketsTextBox.Text = "0";
		this.numPacketsLabel.AutoSize = true;
		this.numPacketsLabel.Location = new System.Drawing.Point(19, 73);
		this.numPacketsLabel.Name = "numPacketsLabel";
		this.numPacketsLabel.Size = new System.Drawing.Size(117, 13);
		this.numPacketsLabel.TabIndex = 20;
		this.numPacketsLabel.Text = "# of data packets (hex)";
		this.continuousDataCheckBox.AutoSize = true;
		this.continuousDataCheckBox.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.continuousDataCheckBox.Checked = true;
		this.continuousDataCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.continuousDataCheckBox.Location = new System.Drawing.Point(22, 92);
		this.continuousDataCheckBox.Name = "continuousDataCheckBox";
		this.continuousDataCheckBox.Size = new System.Drawing.Size(103, 17);
		this.continuousDataCheckBox.TabIndex = 19;
		this.continuousDataCheckBox.Text = "Continuous data";
		this.continuousDataCheckBox.UseVisualStyleBackColor = true;
		this.continuousDataCheckBox.CheckedChanged += new System.EventHandler(continuousDataCheckBox_CheckedChanged);
		this.sequentialDataPatternCheckBox.AutoSize = true;
		this.sequentialDataPatternCheckBox.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.sequentialDataPatternCheckBox.Checked = true;
		this.sequentialDataPatternCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.sequentialDataPatternCheckBox.Location = new System.Drawing.Point(142, 92);
		this.sequentialDataPatternCheckBox.Name = "sequentialDataPatternCheckBox";
		this.sequentialDataPatternCheckBox.Size = new System.Drawing.Size(139, 17);
		this.sequentialDataPatternCheckBox.TabIndex = 18;
		this.sequentialDataPatternCheckBox.Text = "Sequential Data Pattern";
		this.sequentialDataPatternCheckBox.UseVisualStyleBackColor = true;
		this.dataPatternTextBox.Location = new System.Drawing.Point(142, 44);
		this.dataPatternTextBox.Name = "dataPatternTextBox";
		this.dataPatternTextBox.Size = new System.Drawing.Size(54, 20);
		this.dataPatternTextBox.TabIndex = 17;
		this.dataPatternLabel.AutoSize = true;
		this.dataPatternLabel.Location = new System.Drawing.Point(19, 47);
		this.dataPatternLabel.Name = "dataPatternLabel";
		this.dataPatternLabel.Size = new System.Drawing.Size(66, 13);
		this.dataPatternLabel.TabIndex = 16;
		this.dataPatternLabel.Text = "Data pattern";
		this.groupBox3.Controls.Add(this.groupBox4);
		this.groupBox3.Controls.Add(this.groupBoxDstAddr);
		this.groupBox3.Controls.Add(this.groupBoxData);
		this.groupBox3.Location = new System.Drawing.Point(12, 211);
		this.groupBox3.Name = "groupBox3";
		this.groupBox3.Size = new System.Drawing.Size(436, 242);
		this.groupBox3.TabIndex = 22;
		this.groupBox3.TabStop = false;
		this.groupBox3.Text = "Tx mode options";
		this.groupBox4.Controls.Add(this.dstPanIDTextBox);
		this.groupBox4.Controls.Add(this.dstPanIDLabel);
		this.groupBox4.Controls.Add(this.msduHandleTextBox);
		this.groupBox4.Controls.Add(this.msduHandleLabel);
		this.groupBox4.Location = new System.Drawing.Point(6, 73);
		this.groupBox4.Name = "groupBox4";
		this.groupBox4.Size = new System.Drawing.Size(421, 42);
		this.groupBox4.TabIndex = 20;
		this.groupBox4.TabStop = false;
		this.groupBox4.Text = "Connection options";
		this.groupBox5.Controls.Add(this.checkReceiveDataIntegrityCheckBox);
		this.groupBox5.Location = new System.Drawing.Point(12, 157);
		this.groupBox5.Name = "groupBox5";
		this.groupBox5.Size = new System.Drawing.Size(436, 48);
		this.groupBox5.TabIndex = 23;
		this.groupBox5.TabStop = false;
		this.groupBox5.Text = "Rx mode options";
		this.checkReceiveDataIntegrityCheckBox.AutoSize = true;
		this.checkReceiveDataIntegrityCheckBox.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.checkReceiveDataIntegrityCheckBox.Checked = true;
		this.checkReceiveDataIntegrityCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.checkReceiveDataIntegrityCheckBox.Location = new System.Drawing.Point(9, 19);
		this.checkReceiveDataIntegrityCheckBox.Name = "checkReceiveDataIntegrityCheckBox";
		this.checkReceiveDataIntegrityCheckBox.Size = new System.Drawing.Size(122, 17);
		this.checkReceiveDataIntegrityCheckBox.TabIndex = 19;
		this.checkReceiveDataIntegrityCheckBox.Text = "Enable data integrity";
		this.checkReceiveDataIntegrityCheckBox.UseVisualStyleBackColor = true;
		this.groupBox6.Controls.Add(this.nonAssociatedTestCheckBox);
		this.groupBox6.Controls.Add(this.associatedTestCheckBox);
		this.groupBox6.Location = new System.Drawing.Point(12, 8);
		this.groupBox6.Name = "groupBox6";
		this.groupBox6.Size = new System.Drawing.Size(436, 39);
		this.groupBox6.TabIndex = 24;
		this.groupBox6.TabStop = false;
		this.groupBox6.Text = "Test type";
		this.associatedTestCheckBox.AutoSize = true;
		this.associatedTestCheckBox.Location = new System.Drawing.Point(62, 16);
		this.associatedTestCheckBox.Name = "associatedTestCheckBox";
		this.associatedTestCheckBox.Size = new System.Drawing.Size(102, 17);
		this.associatedTestCheckBox.TabIndex = 0;
		this.associatedTestCheckBox.Text = "Associated Test";
		this.associatedTestCheckBox.UseVisualStyleBackColor = true;
		this.associatedTestCheckBox.CheckedChanged += new System.EventHandler(associatedTestCheckBox_CheckedChanged);
		this.nonAssociatedTestCheckBox.AutoSize = true;
		this.nonAssociatedTestCheckBox.Location = new System.Drawing.Point(229, 16);
		this.nonAssociatedTestCheckBox.Name = "nonAssociatedTestCheckBox";
		this.nonAssociatedTestCheckBox.Size = new System.Drawing.Size(124, 17);
		this.nonAssociatedTestCheckBox.TabIndex = 1;
		this.nonAssociatedTestCheckBox.Text = "Non-associated Test";
		this.nonAssociatedTestCheckBox.UseVisualStyleBackColor = true;
		this.nonAssociatedTestCheckBox.CheckedChanged += new System.EventHandler(nonAssociatedTestCheckBox_CheckedChanged);
		base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(462, 498);
		base.Controls.Add(this.groupBox6);
		base.Controls.Add(this.groupBox5);
		base.Controls.Add(this.groupBox3);
		base.Controls.Add(this.cancelButton);
		base.Controls.Add(this.okButton);
		base.Controls.Add(this.groupBoxConnection);
		base.Name = "ZigBeeChooseUserDataOption";
		this.Text = "15.4ChooseUserDataOption";
		base.Load += new System.EventHandler(ZigBeeChooseUserDataOption_Load);
		this.groupBoxConnection.ResumeLayout(false);
		this.groupBoxConnection.PerformLayout();
		this.groupBox2.ResumeLayout(false);
		this.groupBox2.PerformLayout();
		this.groupBoxDstAddr.ResumeLayout(false);
		this.groupBoxDstAddr.PerformLayout();
		this.groupBoxData.ResumeLayout(false);
		this.groupBoxData.PerformLayout();
		this.groupBox1.ResumeLayout(false);
		this.groupBox1.PerformLayout();
		this.groupBox3.ResumeLayout(false);
		this.groupBox4.ResumeLayout(false);
		this.groupBox4.PerformLayout();
		this.groupBox5.ResumeLayout(false);
		this.groupBox5.PerformLayout();
		this.groupBox6.ResumeLayout(false);
		this.groupBox6.PerformLayout();
		base.ResumeLayout(false);
	}
}
