using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using QCRPG.TSL.BT.Packets;

namespace QCRPG.TSL.BT;

public class LocalHostULPOption : Form
{
	private int MinInterval = 20;

	private int MaxInterval = 20;

	private AdvertisingTypeEnum AdvertisingType;

	private OwnAddressTypeEnum AdvertisingOwnAddressType;

	private PeerAddressTypeEnum PeerAddressType;

	private AdvertisingFilterPolicyEnum AdvertisingFilterPolicy;

	private string PeerAddress = "";

	private bool Index37Enable = true;

	private bool Index38Enable = true;

	private bool Index39Enable = true;

	private int AdvertisingDataLength;

	private string AdvertisingData = "";

	private int ScanResponseDataLength;

	private string ScanResponseData = "";

	private LeSetScanParameters.UserFieldsWrapper.LeScanTypeEnum LeScanType;

	private OwnAddressTypeEnum ScanOwnAddressType;

	private int ScanInterval = 20;

	private int ScanWindow = 20;

	private bool ScanFilterPolicyEnable;

	private bool ScanFilterDuplicatesEnable;

	protected string LEFilterAddress = "FFFFFFFFFFFF";

	private OwnAddressTypeEnum CreatConnectionOwnAddressType;

	private int ConnectionTimingMinInterval = 40;

	private int ConnectionTimingMaxInterval = 40;

	private int ConnectionTimingTimeout = 10000;

	private int ConnectionTimingLatency;

	private int ConnectionEventTimingMinLength;

	private int ConnectionEventTimingMaxLength;

	private int ConnectionScanTimingScanInterval = 20;

	private int ConnectionScanTimingScanWindow = 20;

	private bool InitiatorWhiteListEnabe;

	private string CurrentLinkKey = "0102030405060708090A0B0C0D0E0F10";

	private string RandomNumber = "0102030405060708";

	private string EncryptedDiversifier = "0000";

	private bool PositiveAutoReply = true;

	private bool NegativeAutoReply;

	private bool UserPromptedAutoReply;

	private List<string> LeLongTermKeys;

	private List<string> LeRandomNumbers;

	private uint cigID;

	private uint numCis = 1u;

	private uint isoInterval = 8u;

	private uint packing;

	private uint numSubEvents = 2u;

	private uint sca;

	private uint flushTimeoutMS = 1u;

	private uint flushTimeoutSM = 1u;

	private uint maxPayloadSizeMS = 30u;

	private uint maxPayloadSizeSM = 30u;

	private bool phyType1MMSEnable = true;

	private bool phyType2MMSEnable;

	private bool phyTypeCodedMSEnable;

	private bool phyType1MSMEnable;

	private bool phyType2MSMEnable = true;

	private bool phyTypeCodedSMEnable;

	private uint burstNumMS = 1u;

	private uint burstNumSM = 1u;

	private bool icoAutoAccept;

	private bool cisFraming;

	private uint cisSDUIntervalSM;

	private uint cisSDUIntervalMS;

	private uint cisMaxSDUSizeMS;

	private uint cisMaxSDUSizeSM;

	private IContainer components;

	private TabControl localHostULPOptionTabControl;

	private TabPage advertisingTabPage;

	private TabPage scanningTabPage;

	private TabPage createLLConnectionTabPage;

	private Button okButton;

	private GroupBox groupBox3;

	private TextBox advertisingDataTextBox;

	private TextBox advertisingDataLengthTextBox;

	private Label label9;

	private Label label10;

	private GroupBox groupBox2;

	private TextBox scanResponseDataTextBox;

	private TextBox scanResponseDataLengthTextBox;

	private Label label8;

	private Label label7;

	private GroupBox groupBox1;

	private TextBox peerAddressTextBox;

	private ComboBox peerAddressTypeComboBox;

	private ComboBox ownAddressTypeComboBox;

	private Label label6;

	private Label label5;

	private Label label4;

	private ComboBox advertisingTypeComboBox;

	private Label label3;

	private TextBox advertisingMaxIntervalTextBox;

	private Label label2;

	private TextBox advertisingMinIntervalTextBox;

	private Label label1;

	private GroupBox groupBox5;

	private GroupBox groupBox4;

	private CheckBox scanFilterPolicyCheckBox;

	private TextBox scanWindowTextBox;

	private TextBox scanIntervalTextBox;

	private ComboBox scanningAddressTypeComboBox;

	private ComboBox scanTypeComboBox;

	private Label label14;

	private Label label13;

	private Label label12;

	private Label label11;

	private Button cancelButton;

	private GroupBox groupBox7;

	private TextBox leFilterAddress6TextBox;

	private TextBox leFilterAddress5TextBox;

	private TextBox leFilterAddress4TextBox;

	private TextBox leFilterAddress3TextBox;

	private TextBox leFilterAddress2TextBox;

	private TextBox leFilterAddress1TextBox;

	private CheckBox filterDuplicatesCheckBox;

	private GroupBox groupBox6;

	private ComboBox addressTypeOwnComboBox;

	private Label label15;

	private GroupBox groupBox11;

	private CheckBox initiatorWhiteListCheckBox;

	private GroupBox groupBox10;

	private TextBox connectionScanTimingScanWindowTextBox;

	private Label label20;

	private TextBox connectionScanTimingScanIntervalTextBox;

	private Label label21;

	private GroupBox groupBox9;

	private TextBox connectionEventTimingMaxLengthTextBox;

	private Label label22;

	private TextBox connectionEventTimingMinLengthTextBox;

	private Label label23;

	private GroupBox groupBox8;

	private TextBox connectionTimingLatencyTextBox;

	private Label label19;

	private TextBox connectionTimingTimeoutTextBox;

	private Label label18;

	private TextBox connectionTimingIntervalMaxTextBox;

	private Label label17;

	private TextBox connectionTimingIntervalMinTextBox;

	private Label label16;

	private GroupBox groupBox13;

	private ComboBox filterPolicyComboBox;

	private GroupBox groupBox12;

	private CheckBox index39CheckBox;

	private CheckBox index38CheckBox;

	private CheckBox index37CheckBox;

	private SplitContainer splitContainer1;

	private SplitContainer splitContainer2;

	private TabPage tabPageEncryption;

	private GroupBox groupBox15;

	private RadioButton negativeRadioButton;

	private RadioButton positiveRadioButton;

	private GroupBox groupBox14;

	private Button reverseRandomNumberButton;

	private Button reverseLongTermKeyButton;

	private TextBox encryptedDiversifierTextBox;

	private ComboBox randomNumberComboBox;

	private ComboBox longTermKeyComboBox;

	private Label label26;

	private Label label25;

	private Label label24;

	private TabPage tabPageIsoOptions;

	private GroupBox groupBox17;

	private CheckBox checkBoxAutoAcceptIco;

	private GroupBox groupBox16;

	private TextBox textBoxBnMS;

	private TextBox textBoxBnSM;

	private TextBox textBoxFlushTimeSM;

	private TextBox textBoxFlushTimeMS;

	private Label label38;

	private Label label37;

	private Label label36;

	private Label label35;

	private Label label32;

	private TextBox textBoxMaxPayloadSM;

	private TextBox textBoxMaxPayloadMS;

	private Label label31;

	private TextBox textBoxNumSubevents;

	private Label label30;

	private TextBox textBoxIsoInterval;

	private Label label29;

	private TextBox textBoxNumCis;

	private Label label28;

	private TextBox textBoxCigId;

	private Label label27;

	private GroupBox groupBox19;

	private CheckBox checkBoxCodPhySM;

	private CheckBox checkBoxPhy2MSM;

	private CheckBox checkBoxPhy1MSM;

	private GroupBox groupBox18;

	private CheckBox checkBoxCodPhyMS;

	private CheckBox checkBoxPhy2MMS;

	private CheckBox checkBoxPhy1MMS;

	private Label label33;

	private TextBox textBoxPacking;

	private Label label34;

	private TextBox textBoxSca;

	private CheckBox checkBoxFraming;

	private GroupBox groupBox21;

	private TextBox textBoxSduIntervalSM;

	private Label label39;

	private GroupBox groupBox20;

	private TextBox textBoxSduIntervalMS;

	private Label label40;

	private TextBox textBoxMaxSDUSizeSM;

	private Label label42;

	private TextBox textBoxMaxSDUSizeMS;

	private Label label41;

	public int minInterval
	{
		get
		{
			return MinInterval;
		}
		set
		{
			MinInterval = value;
		}
	}

	public int maxInterval
	{
		get
		{
			return MaxInterval;
		}
		set
		{
			MaxInterval = value;
		}
	}

	public AdvertisingTypeEnum advertisingType
	{
		get
		{
			return AdvertisingType;
		}
		set
		{
			AdvertisingType = value;
		}
	}

	public OwnAddressTypeEnum advertisingOwnAddressType
	{
		get
		{
			return AdvertisingOwnAddressType;
		}
		set
		{
			AdvertisingOwnAddressType = value;
		}
	}

	public PeerAddressTypeEnum peerAddressType
	{
		get
		{
			return PeerAddressType;
		}
		set
		{
			PeerAddressType = value;
		}
	}

	public AdvertisingFilterPolicyEnum advertisingFilterPolicy
	{
		get
		{
			return AdvertisingFilterPolicy;
		}
		set
		{
			AdvertisingFilterPolicy = value;
		}
	}

	public string peerAddress
	{
		get
		{
			return PeerAddress;
		}
		set
		{
			PeerAddress = value;
		}
	}

	public bool index37Enable
	{
		get
		{
			return Index37Enable;
		}
		set
		{
			Index37Enable = value;
		}
	}

	public bool index38Enable
	{
		get
		{
			return Index38Enable;
		}
		set
		{
			Index38Enable = value;
		}
	}

	public bool index39Enable
	{
		get
		{
			return Index39Enable;
		}
		set
		{
			Index39Enable = value;
		}
	}

	public int advertisingDataLength => AdvertisingDataLength;

	public string advertisingData
	{
		get
		{
			return AdvertisingData;
		}
		set
		{
			AdvertisingData = value;
		}
	}

	public int scanResponseDataLength => ScanResponseDataLength;

	public string scanResponseData
	{
		get
		{
			return ScanResponseData;
		}
		set
		{
			ScanResponseData = value;
		}
	}

	public LeSetScanParameters.UserFieldsWrapper.LeScanTypeEnum leScanType
	{
		get
		{
			return LeScanType;
		}
		set
		{
			LeScanType = value;
		}
	}

	public OwnAddressTypeEnum scanOwnAddressType
	{
		get
		{
			return ScanOwnAddressType;
		}
		set
		{
			ScanOwnAddressType = value;
		}
	}

	public int scanInterval
	{
		get
		{
			return ScanInterval;
		}
		set
		{
			ScanInterval = value;
		}
	}

	public int scanWindow
	{
		get
		{
			return ScanWindow;
		}
		set
		{
			ScanWindow = value;
		}
	}

	public bool scanFilterPolicyEnable
	{
		get
		{
			return ScanFilterPolicyEnable;
		}
		set
		{
			ScanFilterPolicyEnable = value;
		}
	}

	public bool scanFilterDuplicatesEnable
	{
		get
		{
			return ScanFilterDuplicatesEnable;
		}
		set
		{
			ScanFilterDuplicatesEnable = value;
		}
	}

	public string leFilterAddress
	{
		get
		{
			return LEFilterAddress;
		}
		set
		{
			LEFilterAddress = value;
		}
	}

	public OwnAddressTypeEnum creatConnectionOwnAddressType
	{
		get
		{
			return CreatConnectionOwnAddressType;
		}
		set
		{
			CreatConnectionOwnAddressType = value;
		}
	}

	public int connectionTimingMinInterval
	{
		get
		{
			return ConnectionTimingMinInterval;
		}
		set
		{
			ConnectionTimingMinInterval = value;
		}
	}

	public int connectionTimingMaxInterval
	{
		get
		{
			return ConnectionTimingMaxInterval;
		}
		set
		{
			ConnectionTimingMaxInterval = value;
		}
	}

	public int connectionTimingTimeout
	{
		get
		{
			return ConnectionTimingTimeout;
		}
		set
		{
			ConnectionTimingTimeout = value;
		}
	}

	public int connectionTimingLatency
	{
		get
		{
			return ConnectionTimingLatency;
		}
		set
		{
			ConnectionTimingLatency = value;
		}
	}

	public int connectionEventTimingMinLength
	{
		get
		{
			return ConnectionEventTimingMinLength;
		}
		set
		{
			ConnectionEventTimingMinLength = value;
		}
	}

	public int connectionEventTimingMaxLength
	{
		get
		{
			return ConnectionEventTimingMaxLength;
		}
		set
		{
			ConnectionEventTimingMaxLength = value;
		}
	}

	public int connectionScanTimingScanInterval
	{
		get
		{
			return ConnectionScanTimingScanInterval;
		}
		set
		{
			ConnectionScanTimingScanInterval = value;
		}
	}

	public int connectionScanTimingScanWindow
	{
		get
		{
			return ConnectionScanTimingScanWindow;
		}
		set
		{
			ConnectionScanTimingScanWindow = value;
		}
	}

	public bool initiatorWhiteListEnabe
	{
		get
		{
			return InitiatorWhiteListEnabe;
		}
		set
		{
			InitiatorWhiteListEnabe = value;
		}
	}

	public string currentLinkKey
	{
		get
		{
			return CurrentLinkKey;
		}
		set
		{
			CurrentLinkKey = value;
		}
	}

	public string randomNumber
	{
		get
		{
			return RandomNumber;
		}
		set
		{
			RandomNumber = value;
		}
	}

	public string encryptedDiversifier
	{
		get
		{
			return EncryptedDiversifier;
		}
		set
		{
			EncryptedDiversifier = value;
		}
	}

	public bool positiveAutoReply
	{
		get
		{
			return PositiveAutoReply;
		}
		set
		{
			PositiveAutoReply = value;
		}
	}

	public bool negativeAutoReply
	{
		get
		{
			return NegativeAutoReply;
		}
		set
		{
			NegativeAutoReply = value;
		}
	}

	public bool userPromptedAutoReply
	{
		get
		{
			return UserPromptedAutoReply;
		}
		set
		{
			UserPromptedAutoReply = value;
		}
	}

	public List<string> leLongTermKeys
	{
		set
		{
			LeLongTermKeys = value;
		}
	}

	public List<string> leRandomNumbers
	{
		set
		{
			LeRandomNumbers = value;
		}
	}

	public uint CigID
	{
		get
		{
			return cigID;
		}
		set
		{
			cigID = value;
		}
	}

	public uint NumCis
	{
		get
		{
			return numCis;
		}
		set
		{
			numCis = value;
		}
	}

	public uint IsoInterval
	{
		get
		{
			return isoInterval;
		}
		set
		{
			isoInterval = value;
		}
	}

	public uint Packing
	{
		get
		{
			return packing;
		}
		set
		{
			packing = value;
		}
	}

	public uint NumSubEvents
	{
		get
		{
			return numSubEvents;
		}
		set
		{
			numSubEvents = value;
		}
	}

	public uint Sca
	{
		get
		{
			return sca;
		}
		set
		{
			sca = value;
		}
	}

	public uint FlushTimeoutMS
	{
		get
		{
			return flushTimeoutMS;
		}
		set
		{
			flushTimeoutMS = value;
		}
	}

	public uint FlushTimeoutSM
	{
		get
		{
			return flushTimeoutSM;
		}
		set
		{
			flushTimeoutSM = value;
		}
	}

	public uint MaxPayloadSizeMS
	{
		get
		{
			return maxPayloadSizeMS;
		}
		set
		{
			maxPayloadSizeMS = value;
		}
	}

	public uint MaxPayloadSizeSM
	{
		get
		{
			return maxPayloadSizeSM;
		}
		set
		{
			maxPayloadSizeSM = value;
		}
	}

	public bool PhyType1MMSEnable
	{
		get
		{
			return phyType1MMSEnable;
		}
		set
		{
			phyType1MMSEnable = value;
		}
	}

	public bool PhyType2MMSEnable
	{
		get
		{
			return phyType2MMSEnable;
		}
		set
		{
			phyType2MMSEnable = value;
		}
	}

	public bool PhyTypeCodedMSEnable
	{
		get
		{
			return phyTypeCodedMSEnable;
		}
		set
		{
			phyTypeCodedMSEnable = value;
		}
	}

	public bool PhyType1MSMEnable
	{
		get
		{
			return phyType1MSMEnable;
		}
		set
		{
			phyType1MSMEnable = value;
		}
	}

	public bool PhyType2MSMEnable
	{
		get
		{
			return phyType2MSMEnable;
		}
		set
		{
			phyType2MSMEnable = value;
		}
	}

	public bool PhyTypeCodedSMEnable
	{
		get
		{
			return phyTypeCodedSMEnable;
		}
		set
		{
			phyTypeCodedSMEnable = value;
		}
	}

	public uint BurstNumMS
	{
		get
		{
			return burstNumMS;
		}
		set
		{
			burstNumMS = value;
		}
	}

	public uint BurstNumSM
	{
		get
		{
			return burstNumSM;
		}
		set
		{
			burstNumSM = value;
		}
	}

	public bool IcoAutoAccept
	{
		get
		{
			return icoAutoAccept;
		}
		set
		{
			icoAutoAccept = value;
		}
	}

	public bool CisFraming
	{
		get
		{
			return cisFraming;
		}
		set
		{
			cisFraming = value;
		}
	}

	public uint CisSDUIntervalSM
	{
		get
		{
			return cisSDUIntervalSM;
		}
		set
		{
			cisSDUIntervalSM = value;
		}
	}

	public uint CisSDUIntervalMS
	{
		get
		{
			return cisSDUIntervalMS;
		}
		set
		{
			cisSDUIntervalMS = value;
		}
	}

	public uint CisMaxSDUSizeMS
	{
		get
		{
			return cisMaxSDUSizeMS;
		}
		set
		{
			cisMaxSDUSizeMS = value;
		}
	}

	public uint CisMaxSDUSizeSM
	{
		get
		{
			return cisMaxSDUSizeSM;
		}
		set
		{
			cisMaxSDUSizeSM = value;
		}
	}

	public LocalHostULPOption()
	{
		InitializeComponent();
	}

	private void LocalHostULPOption_Load(object sender, EventArgs e)
	{
		advertisingMinIntervalTextBox.Text = MinInterval.ToString();
		advertisingMaxIntervalTextBox.Text = MaxInterval.ToString();
		peerAddressTextBox.Text = PeerAddress;
		advertisingTypeComboBox.DataSource = Enum.GetValues(typeof(AdvertisingTypeEnum));
		advertisingTypeComboBox.SelectedIndex = (int)AdvertisingType;
		ownAddressTypeComboBox.DataSource = Enum.GetValues(typeof(OwnAddressTypeEnum));
		ownAddressTypeComboBox.SelectedIndex = (int)AdvertisingOwnAddressType;
		peerAddressTypeComboBox.DataSource = Enum.GetValues(typeof(PeerAddressTypeEnum));
		peerAddressTypeComboBox.SelectedIndex = (int)PeerAddressType;
		filterPolicyComboBox.DataSource = Enum.GetValues(typeof(AdvertisingFilterPolicyEnum));
		filterPolicyComboBox.SelectedIndex = (int)AdvertisingFilterPolicy;
		index37CheckBox.Checked = Index37Enable;
		index38CheckBox.Checked = Index38Enable;
		index39CheckBox.Checked = Index39Enable;
		scanResponseDataLengthTextBox.Text = ScanResponseDataLength.ToString();
		scanResponseDataTextBox.Text = ScanResponseData;
		advertisingDataLengthTextBox.Text = AdvertisingDataLength.ToString();
		advertisingDataTextBox.Text = AdvertisingData;
		scanTypeComboBox.DataSource = Enum.GetValues(typeof(LeSetScanParameters.UserFieldsWrapper.LeScanTypeEnum));
		scanTypeComboBox.SelectedIndex = (int)LeScanType;
		scanningAddressTypeComboBox.DataSource = Enum.GetValues(typeof(OwnAddressTypeEnum));
		scanningAddressTypeComboBox.SelectedIndex = (int)ScanOwnAddressType;
		scanIntervalTextBox.Text = ScanInterval.ToString();
		scanWindowTextBox.Text = ScanWindow.ToString();
		scanFilterPolicyCheckBox.Checked = ScanFilterPolicyEnable;
		filterDuplicatesCheckBox.Checked = ScanFilterDuplicatesEnable;
		string[] array = ParseFilterAddress(LEFilterAddress);
		leFilterAddress1TextBox.Text = array[0];
		leFilterAddress2TextBox.Text = array[1];
		leFilterAddress3TextBox.Text = array[2];
		leFilterAddress4TextBox.Text = array[3];
		leFilterAddress5TextBox.Text = array[4];
		leFilterAddress6TextBox.Text = array[5];
		addressTypeOwnComboBox.DataSource = Enum.GetValues(typeof(OwnAddressTypeEnum));
		addressTypeOwnComboBox.SelectedIndex = (int)CreatConnectionOwnAddressType;
		connectionTimingIntervalMinTextBox.Text = ConnectionTimingMinInterval.ToString();
		connectionTimingIntervalMaxTextBox.Text = ConnectionTimingMaxInterval.ToString();
		connectionTimingTimeoutTextBox.Text = ConnectionTimingTimeout.ToString();
		connectionTimingLatencyTextBox.Text = ConnectionTimingLatency.ToString();
		connectionEventTimingMinLengthTextBox.Text = ConnectionEventTimingMinLength.ToString();
		connectionEventTimingMaxLengthTextBox.Text = ConnectionEventTimingMaxLength.ToString();
		connectionScanTimingScanIntervalTextBox.Text = ConnectionScanTimingScanInterval.ToString();
		connectionScanTimingScanWindowTextBox.Text = ConnectionScanTimingScanWindow.ToString();
		initiatorWhiteListCheckBox.Checked = InitiatorWhiteListEnabe;
		longTermKeyComboBox.Text = CurrentLinkKey;
		longTermKeyComboBox.Items.AddRange(LeLongTermKeys.ToArray());
		randomNumberComboBox.Text = RandomNumber;
		randomNumberComboBox.Items.AddRange(LeRandomNumbers.ToArray());
		encryptedDiversifierTextBox.Text = EncryptedDiversifier;
		textBoxCigId.Text = CigID.ToString();
		textBoxNumCis.Text = NumCis.ToString();
		textBoxIsoInterval.Text = IsoInterval.ToString();
		textBoxPacking.Text = Packing.ToString();
		textBoxNumSubevents.Text = NumSubEvents.ToString();
		textBoxSca.Text = Sca.ToString();
		textBoxFlushTimeMS.Text = FlushTimeoutMS.ToString();
		textBoxFlushTimeSM.Text = FlushTimeoutSM.ToString();
		textBoxMaxPayloadMS.Text = MaxPayloadSizeMS.ToString();
		textBoxMaxPayloadSM.Text = MaxPayloadSizeSM.ToString();
		checkBoxPhy1MMS.Checked = PhyType1MMSEnable;
		checkBoxPhy2MMS.Checked = PhyType2MMSEnable;
		checkBoxCodPhyMS.Checked = phyTypeCodedMSEnable;
		checkBoxPhy1MSM.Checked = PhyType1MSMEnable;
		checkBoxPhy2MSM.Checked = phyType2MSMEnable;
		checkBoxCodPhySM.Checked = phyTypeCodedMSEnable;
		textBoxBnMS.Text = BurstNumMS.ToString();
		textBoxBnSM.Text = BurstNumSM.ToString();
		checkBoxAutoAcceptIco.Checked = icoAutoAccept;
		checkBoxFraming.Checked = cisFraming;
		textBoxSduIntervalMS.Text = cisSDUIntervalMS.ToString();
		textBoxMaxSDUSizeMS.Text = cisMaxSDUSizeMS.ToString();
		textBoxSduIntervalSM.Text = cisSDUIntervalSM.ToString();
		textBoxMaxSDUSizeSM.Text = cisMaxSDUSizeSM.ToString();
	}

	private void scanResponseDataTextBox_TextChanged(object sender, EventArgs e)
	{
		if (!string.IsNullOrEmpty(scanResponseDataTextBox.Text))
		{
			if (!ConfirmHex(scanResponseDataTextBox.Text.ToString()))
			{
				MessageBox.Show("Value is not HEX");
				return;
			}
			int length = scanResponseDataTextBox.Text.ToString().Length;
			length /= 2;
			scanResponseDataLengthTextBox.Text = length.ToString();
		}
	}

	private void advertisingDataTextBox_TextChanged(object sender, EventArgs e)
	{
		if (!string.IsNullOrEmpty(advertisingDataTextBox.Text))
		{
			if (!ConfirmHex(advertisingDataTextBox.Text.ToString()))
			{
				MessageBox.Show("Value is not HEX");
				return;
			}
			int length = advertisingDataTextBox.Text.ToString().Length;
			length /= 2;
			advertisingDataLengthTextBox.Text = length.ToString();
		}
	}

	private void advertisingTypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
	{
		switch (advertisingTypeComboBox.SelectedItem.ToString())
		{
		case "Reserved_for_future_use":
		case "InvalidAdvertisingTypeValue":
			advertisingTypeComboBox.SelectedIndex = 0;
			break;
		}
	}

	private void ownAddressTypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
	{
		switch (ownAddressTypeComboBox.SelectedItem.ToString())
		{
		case "Reserved_for_future_use":
		case "InvalidOwnAddressTypeValue":
			ownAddressTypeComboBox.SelectedIndex = 0;
			break;
		}
	}

	private string[] ParseFilterAddress(string btAddress)
	{
		if (btAddress == null)
		{
			throw new Exception("Failed to find Bluetooth address.");
		}
		return new string[6]
		{
			btAddress.Substring(0, 2),
			btAddress.Substring(2, 2),
			btAddress.Substring(4, 2),
			btAddress.Substring(6, 2),
			btAddress.Substring(8, 2),
			btAddress.Substring(10, 2)
		};
	}

	private void peerAddressTypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
	{
		switch (peerAddressTypeComboBox.SelectedItem.ToString())
		{
		case "Reserved_for_future_use":
		case "InvalidPeerAddressTypeValue":
			peerAddressTypeComboBox.SelectedIndex = 0;
			break;
		}
	}

	private void filterPolicyComboBox_SelectedIndexChanged(object sender, EventArgs e)
	{
		switch (filterPolicyComboBox.SelectedItem.ToString())
		{
		case "Reserved_for_future_use":
		case "InvalidAdvertisingFilterPolicyValue":
			filterPolicyComboBox.SelectedIndex = 0;
			break;
		}
	}

	private void scanTypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
	{
		switch (scanTypeComboBox.SelectedItem.ToString())
		{
		case "Reserved_for_future_use":
		case "InvalidLeScanTypeValue":
			scanTypeComboBox.SelectedIndex = 0;
			break;
		}
	}

	private void scanningAddressTypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
	{
		switch (scanningAddressTypeComboBox.SelectedItem.ToString())
		{
		case "RESERVED_FOR_FUTURE_USE":
		case "InvalidOwnAddressTypeValue":
			scanningAddressTypeComboBox.SelectedIndex = 0;
			break;
		}
	}

	private void addressTypeOwnComboBox_SelectedIndexChanged(object sender, EventArgs e)
	{
		switch (addressTypeOwnComboBox.SelectedItem.ToString())
		{
		case "RESERVED_FOR_FUTURE_USE":
		case "InvalidOwnAddressTypeValue":
			addressTypeOwnComboBox.SelectedIndex = 0;
			break;
		}
	}

	private void scanResponseDataLengthTextBox_TextChanged(object sender, EventArgs e)
	{
		int result = 0;
		if (!int.TryParse(scanResponseDataLengthTextBox.Text.ToString(), out result) || result <= 0 || result >= 31)
		{
			MessageBox.Show("Value should be between 0 to 31");
		}
	}

	private void advertisingDataLengthTextBox_TextChanged(object sender, EventArgs e)
	{
		int result = 0;
		if (!int.TryParse(advertisingDataLengthTextBox.Text.ToString(), out result) || result <= 0 || result >= 31)
		{
			MessageBox.Show("Value should be between 0 to 31");
		}
	}

	private void okButton_Click(object sender, EventArgs e)
	{
		if (!int.TryParse(advertisingMinIntervalTextBox.Text, out MinInterval))
		{
			MinInterval = 20;
		}
		if (!int.TryParse(advertisingMaxIntervalTextBox.Text, out MaxInterval))
		{
			MaxInterval = 20;
		}
		AdvertisingType = (AdvertisingTypeEnum)advertisingTypeComboBox.SelectedIndex;
		AdvertisingOwnAddressType = (OwnAddressTypeEnum)ownAddressTypeComboBox.SelectedIndex;
		PeerAddressType = (PeerAddressTypeEnum)peerAddressTypeComboBox.SelectedIndex;
		PeerAddress = peerAddressTextBox.Text.ToString();
		index37Enable = index37CheckBox.Checked;
		index38Enable = index38CheckBox.Checked;
		index39Enable = index39CheckBox.Checked;
		AdvertisingFilterPolicy = (AdvertisingFilterPolicyEnum)filterPolicyComboBox.SelectedIndex;
		if (!int.TryParse(advertisingDataLengthTextBox.Text.ToString(), out AdvertisingDataLength))
		{
			AdvertisingDataLength = 0;
		}
		AdvertisingData = advertisingDataTextBox.Text.ToString();
		if (!int.TryParse(scanResponseDataLengthTextBox.Text.ToString(), out ScanResponseDataLength))
		{
			ScanResponseDataLength = 0;
		}
		ScanResponseData = scanResponseDataTextBox.Text.ToString();
		LEFilterAddress = leFilterAddress1TextBox.Text.ToUpper() + leFilterAddress2TextBox.Text.ToUpper() + leFilterAddress3TextBox.Text.ToUpper() + leFilterAddress4TextBox.Text.ToUpper() + leFilterAddress5TextBox.Text.ToUpper() + leFilterAddress6TextBox.Text.ToUpper();
		LeScanType = (LeSetScanParameters.UserFieldsWrapper.LeScanTypeEnum)scanTypeComboBox.SelectedIndex;
		ScanOwnAddressType = (OwnAddressTypeEnum)scanningAddressTypeComboBox.SelectedIndex;
		if (!int.TryParse(scanIntervalTextBox.Text.ToString(), out ScanInterval))
		{
			ScanInterval = 20;
		}
		if (!int.TryParse(scanWindowTextBox.Text.ToString(), out ScanWindow))
		{
			ScanWindow = 20;
		}
		ScanFilterPolicyEnable = scanFilterPolicyCheckBox.Checked;
		CreatConnectionOwnAddressType = (OwnAddressTypeEnum)addressTypeOwnComboBox.SelectedIndex;
		if (!int.TryParse(connectionTimingIntervalMinTextBox.Text.ToString(), out ConnectionTimingMinInterval))
		{
			ConnectionTimingMinInterval = 40;
		}
		if (!int.TryParse(connectionTimingIntervalMaxTextBox.Text.ToString(), out ConnectionTimingMaxInterval))
		{
			ConnectionTimingMaxInterval = 40;
		}
		if (!int.TryParse(connectionTimingTimeoutTextBox.Text.ToString(), out ConnectionTimingTimeout))
		{
			ConnectionTimingTimeout = 10000;
		}
		if (!int.TryParse(connectionTimingLatencyTextBox.Text.ToString(), out ConnectionTimingLatency))
		{
			ConnectionTimingLatency = 0;
		}
		if (!int.TryParse(connectionEventTimingMinLengthTextBox.Text.ToString(), out ConnectionEventTimingMinLength))
		{
			ConnectionEventTimingMinLength = 0;
		}
		if (!int.TryParse(connectionEventTimingMaxLengthTextBox.Text.ToString(), out ConnectionEventTimingMaxLength))
		{
			ConnectionEventTimingMaxLength = 0;
		}
		if (!int.TryParse(connectionScanTimingScanIntervalTextBox.Text.ToString(), out ConnectionScanTimingScanInterval))
		{
			ConnectionScanTimingScanInterval = 20;
		}
		if (!int.TryParse(connectionScanTimingScanWindowTextBox.Text.ToString(), out ConnectionScanTimingScanWindow))
		{
			ConnectionScanTimingScanWindow = 20;
		}
		InitiatorWhiteListEnabe = initiatorWhiteListCheckBox.Checked;
		PositiveAutoReply = positiveRadioButton.Checked;
		NegativeAutoReply = negativeRadioButton.Checked;
		CurrentLinkKey = longTermKeyComboBox.Text.ToUpper().PadLeft(32, '0');
		int num = LeLongTermKeys.IndexOf(CurrentLinkKey);
		LeLongTermKeys.Insert(0, CurrentLinkKey);
		if (num != -1)
		{
			LeLongTermKeys.RemoveAt(num + 1);
		}
		RandomNumber = randomNumberComboBox.Text.ToUpper().PadLeft(16, '0');
		int num2 = LeRandomNumbers.IndexOf(RandomNumber);
		LeRandomNumbers.Insert(0, RandomNumber);
		if (num2 != -1)
		{
			LeRandomNumbers.RemoveAt(num2 + 1);
		}
		EncryptedDiversifier = encryptedDiversifierTextBox.Text.ToUpper().PadLeft(4, '0');
		uint.TryParse(textBoxCigId.Text, out cigID);
		uint.TryParse(textBoxNumCis.Text, out numCis);
		uint.TryParse(textBoxIsoInterval.Text, out isoInterval);
		uint.TryParse(textBoxPacking.Text, out packing);
		uint.TryParse(textBoxNumSubevents.Text, out numSubEvents);
		uint.TryParse(textBoxSca.Text, out sca);
		uint.TryParse(textBoxFlushTimeMS.Text, out flushTimeoutMS);
		uint.TryParse(textBoxFlushTimeSM.Text, out flushTimeoutSM);
		uint.TryParse(textBoxMaxPayloadMS.Text, out maxPayloadSizeMS);
		uint.TryParse(textBoxMaxPayloadSM.Text, out maxPayloadSizeSM);
		PhyType1MMSEnable = checkBoxPhy1MMS.Checked;
		PhyType2MMSEnable = checkBoxPhy2MMS.Checked;
		phyTypeCodedMSEnable = checkBoxCodPhyMS.Checked;
		PhyType1MSMEnable = checkBoxPhy1MSM.Checked;
		phyType2MSMEnable = checkBoxPhy2MSM.Checked;
		phyTypeCodedMSEnable = checkBoxCodPhySM.Checked;
		uint.TryParse(textBoxBnMS.Text, out burstNumMS);
		uint.TryParse(textBoxBnSM.Text, out burstNumSM);
		IcoAutoAccept = checkBoxAutoAcceptIco.Checked;
		cisFraming = checkBoxFraming.Checked;
		uint.TryParse(textBoxSduIntervalMS.Text, out cisSDUIntervalMS);
		uint.TryParse(textBoxMaxSDUSizeMS.Text, out cisMaxSDUSizeMS);
		uint.TryParse(textBoxSduIntervalSM.Text, out cisSDUIntervalSM);
		uint.TryParse(textBoxMaxSDUSizeSM.Text, out cisMaxSDUSizeSM);
	}

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

	private void peerAddressTextBox_TextChanged(object sender, EventArgs e)
	{
		if (!string.IsNullOrEmpty(peerAddressTextBox.Text) && !ConfirmHex(peerAddressTextBox.Text.ToString()))
		{
			MessageBox.Show("Value is not HEX");
		}
	}

	private bool ConfirmHex(string hexString)
	{
		Regex regex = new Regex("^[0-9A-F]+$", RegexOptions.IgnoreCase);
		return regex.IsMatch(hexString);
	}

	private void longTermKeyComboBox_TextChanged(object sender, EventArgs e)
	{
		if (!string.IsNullOrEmpty(longTermKeyComboBox.Text) && !ConfirmHex(longTermKeyComboBox.Text.ToString()))
		{
			MessageBox.Show("Value is not HEX");
		}
	}

	private void reverseLongTermKeyButton_Click(object sender, EventArgs e)
	{
		string key = longTermKeyComboBox.Text.PadLeft(32, '0');
		IEnumerable<string> source = from i in Enumerable.Range(0, 16)
			select key.Substring(2 * i, 2);
		longTermKeyComboBox.Text = string.Join(string.Empty, source.Reverse());
	}

	private void randomNumberComboBox_SelectedIndexChanged(object sender, EventArgs e)
	{
		if (!string.IsNullOrEmpty(randomNumberComboBox.Text) && !ConfirmHex(randomNumberComboBox.Text.ToString()))
		{
			MessageBox.Show("Value is not HEX");
		}
	}

	private void reverseRandomNumberButton_Click(object sender, EventArgs e)
	{
		string rn = randomNumberComboBox.Text.PadLeft(16, '0');
		IEnumerable<string> source = from i in Enumerable.Range(0, 8)
			select rn.Substring(2 * i, 2);
		randomNumberComboBox.Text = string.Join(string.Empty, source.Reverse());
	}

	private void encryptedDiversifierTextBox_TextChanged(object sender, EventArgs e)
	{
		if (!string.IsNullOrEmpty(encryptedDiversifierTextBox.Text) && !ConfirmHex(encryptedDiversifierTextBox.Text.ToString()))
		{
			MessageBox.Show("Value is not HEX");
		}
	}

	private void advertisingMinIntervalTextBox_Leave(object sender, EventArgs e)
	{
		if (!int.TryParse(advertisingMinIntervalTextBox.Text.ToString(), out MinInterval) || MinInterval < 20 || MinInterval > 10240)
		{
			MessageBox.Show("Value should be between 20 to 10241");
		}
	}

	private void advertisingMaxIntervalTextBox_Leave(object sender, EventArgs e)
	{
		if (!int.TryParse(advertisingMinIntervalTextBox.Text.ToString(), out MaxInterval) || MaxInterval < 20 || MaxInterval > 10240)
		{
			MessageBox.Show("Value should be between 20 to 10242");
		}
	}

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

	private void InitializeComponent()
	{
		this.localHostULPOptionTabControl = new System.Windows.Forms.TabControl();
		this.advertisingTabPage = new System.Windows.Forms.TabPage();
		this.groupBox3 = new System.Windows.Forms.GroupBox();
		this.advertisingDataTextBox = new System.Windows.Forms.TextBox();
		this.advertisingDataLengthTextBox = new System.Windows.Forms.TextBox();
		this.label9 = new System.Windows.Forms.Label();
		this.label10 = new System.Windows.Forms.Label();
		this.groupBox2 = new System.Windows.Forms.GroupBox();
		this.scanResponseDataTextBox = new System.Windows.Forms.TextBox();
		this.scanResponseDataLengthTextBox = new System.Windows.Forms.TextBox();
		this.label8 = new System.Windows.Forms.Label();
		this.label7 = new System.Windows.Forms.Label();
		this.groupBox1 = new System.Windows.Forms.GroupBox();
		this.groupBox13 = new System.Windows.Forms.GroupBox();
		this.filterPolicyComboBox = new System.Windows.Forms.ComboBox();
		this.groupBox12 = new System.Windows.Forms.GroupBox();
		this.index39CheckBox = new System.Windows.Forms.CheckBox();
		this.index38CheckBox = new System.Windows.Forms.CheckBox();
		this.index37CheckBox = new System.Windows.Forms.CheckBox();
		this.peerAddressTextBox = new System.Windows.Forms.TextBox();
		this.peerAddressTypeComboBox = new System.Windows.Forms.ComboBox();
		this.ownAddressTypeComboBox = new System.Windows.Forms.ComboBox();
		this.label6 = new System.Windows.Forms.Label();
		this.label5 = new System.Windows.Forms.Label();
		this.label4 = new System.Windows.Forms.Label();
		this.advertisingTypeComboBox = new System.Windows.Forms.ComboBox();
		this.label3 = new System.Windows.Forms.Label();
		this.advertisingMaxIntervalTextBox = new System.Windows.Forms.TextBox();
		this.label2 = new System.Windows.Forms.Label();
		this.advertisingMinIntervalTextBox = new System.Windows.Forms.TextBox();
		this.label1 = new System.Windows.Forms.Label();
		this.scanningTabPage = new System.Windows.Forms.TabPage();
		this.groupBox7 = new System.Windows.Forms.GroupBox();
		this.leFilterAddress6TextBox = new System.Windows.Forms.TextBox();
		this.leFilterAddress5TextBox = new System.Windows.Forms.TextBox();
		this.leFilterAddress4TextBox = new System.Windows.Forms.TextBox();
		this.leFilterAddress3TextBox = new System.Windows.Forms.TextBox();
		this.leFilterAddress2TextBox = new System.Windows.Forms.TextBox();
		this.leFilterAddress1TextBox = new System.Windows.Forms.TextBox();
		this.groupBox5 = new System.Windows.Forms.GroupBox();
		this.filterDuplicatesCheckBox = new System.Windows.Forms.CheckBox();
		this.groupBox4 = new System.Windows.Forms.GroupBox();
		this.scanFilterPolicyCheckBox = new System.Windows.Forms.CheckBox();
		this.scanWindowTextBox = new System.Windows.Forms.TextBox();
		this.scanIntervalTextBox = new System.Windows.Forms.TextBox();
		this.scanningAddressTypeComboBox = new System.Windows.Forms.ComboBox();
		this.scanTypeComboBox = new System.Windows.Forms.ComboBox();
		this.label14 = new System.Windows.Forms.Label();
		this.label13 = new System.Windows.Forms.Label();
		this.label12 = new System.Windows.Forms.Label();
		this.label11 = new System.Windows.Forms.Label();
		this.createLLConnectionTabPage = new System.Windows.Forms.TabPage();
		this.groupBox11 = new System.Windows.Forms.GroupBox();
		this.initiatorWhiteListCheckBox = new System.Windows.Forms.CheckBox();
		this.groupBox10 = new System.Windows.Forms.GroupBox();
		this.connectionScanTimingScanWindowTextBox = new System.Windows.Forms.TextBox();
		this.label20 = new System.Windows.Forms.Label();
		this.connectionScanTimingScanIntervalTextBox = new System.Windows.Forms.TextBox();
		this.label21 = new System.Windows.Forms.Label();
		this.groupBox9 = new System.Windows.Forms.GroupBox();
		this.connectionEventTimingMaxLengthTextBox = new System.Windows.Forms.TextBox();
		this.label22 = new System.Windows.Forms.Label();
		this.connectionEventTimingMinLengthTextBox = new System.Windows.Forms.TextBox();
		this.label23 = new System.Windows.Forms.Label();
		this.groupBox8 = new System.Windows.Forms.GroupBox();
		this.connectionTimingLatencyTextBox = new System.Windows.Forms.TextBox();
		this.label19 = new System.Windows.Forms.Label();
		this.connectionTimingTimeoutTextBox = new System.Windows.Forms.TextBox();
		this.label18 = new System.Windows.Forms.Label();
		this.connectionTimingIntervalMaxTextBox = new System.Windows.Forms.TextBox();
		this.label17 = new System.Windows.Forms.Label();
		this.connectionTimingIntervalMinTextBox = new System.Windows.Forms.TextBox();
		this.label16 = new System.Windows.Forms.Label();
		this.groupBox6 = new System.Windows.Forms.GroupBox();
		this.addressTypeOwnComboBox = new System.Windows.Forms.ComboBox();
		this.label15 = new System.Windows.Forms.Label();
		this.tabPageEncryption = new System.Windows.Forms.TabPage();
		this.groupBox15 = new System.Windows.Forms.GroupBox();
		this.negativeRadioButton = new System.Windows.Forms.RadioButton();
		this.positiveRadioButton = new System.Windows.Forms.RadioButton();
		this.groupBox14 = new System.Windows.Forms.GroupBox();
		this.reverseRandomNumberButton = new System.Windows.Forms.Button();
		this.reverseLongTermKeyButton = new System.Windows.Forms.Button();
		this.encryptedDiversifierTextBox = new System.Windows.Forms.TextBox();
		this.randomNumberComboBox = new System.Windows.Forms.ComboBox();
		this.longTermKeyComboBox = new System.Windows.Forms.ComboBox();
		this.label26 = new System.Windows.Forms.Label();
		this.label25 = new System.Windows.Forms.Label();
		this.label24 = new System.Windows.Forms.Label();
		this.tabPageIsoOptions = new System.Windows.Forms.TabPage();
		this.groupBox17 = new System.Windows.Forms.GroupBox();
		this.checkBoxAutoAcceptIco = new System.Windows.Forms.CheckBox();
		this.groupBox16 = new System.Windows.Forms.GroupBox();
		this.label34 = new System.Windows.Forms.Label();
		this.textBoxSca = new System.Windows.Forms.TextBox();
		this.textBoxPacking = new System.Windows.Forms.TextBox();
		this.label33 = new System.Windows.Forms.Label();
		this.textBoxNumCis = new System.Windows.Forms.TextBox();
		this.label28 = new System.Windows.Forms.Label();
		this.groupBox19 = new System.Windows.Forms.GroupBox();
		this.checkBoxCodPhySM = new System.Windows.Forms.CheckBox();
		this.checkBoxPhy2MSM = new System.Windows.Forms.CheckBox();
		this.checkBoxPhy1MSM = new System.Windows.Forms.CheckBox();
		this.groupBox18 = new System.Windows.Forms.GroupBox();
		this.checkBoxCodPhyMS = new System.Windows.Forms.CheckBox();
		this.checkBoxPhy2MMS = new System.Windows.Forms.CheckBox();
		this.checkBoxPhy1MMS = new System.Windows.Forms.CheckBox();
		this.textBoxBnMS = new System.Windows.Forms.TextBox();
		this.textBoxBnSM = new System.Windows.Forms.TextBox();
		this.label27 = new System.Windows.Forms.Label();
		this.textBoxFlushTimeSM = new System.Windows.Forms.TextBox();
		this.textBoxFlushTimeMS = new System.Windows.Forms.TextBox();
		this.label38 = new System.Windows.Forms.Label();
		this.label37 = new System.Windows.Forms.Label();
		this.label36 = new System.Windows.Forms.Label();
		this.label35 = new System.Windows.Forms.Label();
		this.label32 = new System.Windows.Forms.Label();
		this.textBoxMaxPayloadSM = new System.Windows.Forms.TextBox();
		this.textBoxMaxPayloadMS = new System.Windows.Forms.TextBox();
		this.label31 = new System.Windows.Forms.Label();
		this.textBoxNumSubevents = new System.Windows.Forms.TextBox();
		this.label30 = new System.Windows.Forms.Label();
		this.textBoxIsoInterval = new System.Windows.Forms.TextBox();
		this.label29 = new System.Windows.Forms.Label();
		this.textBoxCigId = new System.Windows.Forms.TextBox();
		this.okButton = new System.Windows.Forms.Button();
		this.cancelButton = new System.Windows.Forms.Button();
		this.splitContainer1 = new System.Windows.Forms.SplitContainer();
		this.splitContainer2 = new System.Windows.Forms.SplitContainer();
		this.groupBox20 = new System.Windows.Forms.GroupBox();
		this.groupBox21 = new System.Windows.Forms.GroupBox();
		this.label39 = new System.Windows.Forms.Label();
		this.textBoxSduIntervalSM = new System.Windows.Forms.TextBox();
		this.label40 = new System.Windows.Forms.Label();
		this.textBoxSduIntervalMS = new System.Windows.Forms.TextBox();
		this.checkBoxFraming = new System.Windows.Forms.CheckBox();
		this.label41 = new System.Windows.Forms.Label();
		this.label42 = new System.Windows.Forms.Label();
		this.textBoxMaxSDUSizeSM = new System.Windows.Forms.TextBox();
		this.textBoxMaxSDUSizeMS = new System.Windows.Forms.TextBox();
		this.localHostULPOptionTabControl.SuspendLayout();
		this.advertisingTabPage.SuspendLayout();
		this.groupBox3.SuspendLayout();
		this.groupBox2.SuspendLayout();
		this.groupBox1.SuspendLayout();
		this.groupBox13.SuspendLayout();
		this.groupBox12.SuspendLayout();
		this.scanningTabPage.SuspendLayout();
		this.groupBox7.SuspendLayout();
		this.groupBox5.SuspendLayout();
		this.groupBox4.SuspendLayout();
		this.createLLConnectionTabPage.SuspendLayout();
		this.groupBox11.SuspendLayout();
		this.groupBox10.SuspendLayout();
		this.groupBox9.SuspendLayout();
		this.groupBox8.SuspendLayout();
		this.groupBox6.SuspendLayout();
		this.tabPageEncryption.SuspendLayout();
		this.groupBox15.SuspendLayout();
		this.groupBox14.SuspendLayout();
		this.tabPageIsoOptions.SuspendLayout();
		this.groupBox17.SuspendLayout();
		this.groupBox16.SuspendLayout();
		this.groupBox19.SuspendLayout();
		this.groupBox18.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.splitContainer1).BeginInit();
		this.splitContainer1.Panel1.SuspendLayout();
		this.splitContainer1.Panel2.SuspendLayout();
		this.splitContainer1.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.splitContainer2).BeginInit();
		this.splitContainer2.Panel1.SuspendLayout();
		this.splitContainer2.Panel2.SuspendLayout();
		this.splitContainer2.SuspendLayout();
		this.groupBox20.SuspendLayout();
		this.groupBox21.SuspendLayout();
		base.SuspendLayout();
		this.localHostULPOptionTabControl.Controls.Add(this.advertisingTabPage);
		this.localHostULPOptionTabControl.Controls.Add(this.scanningTabPage);
		this.localHostULPOptionTabControl.Controls.Add(this.createLLConnectionTabPage);
		this.localHostULPOptionTabControl.Controls.Add(this.tabPageEncryption);
		this.localHostULPOptionTabControl.Controls.Add(this.tabPageIsoOptions);
		this.localHostULPOptionTabControl.Dock = System.Windows.Forms.DockStyle.Fill;
		this.localHostULPOptionTabControl.Location = new System.Drawing.Point(0, 0);
		this.localHostULPOptionTabControl.Name = "localHostULPOptionTabControl";
		this.localHostULPOptionTabControl.SelectedIndex = 0;
		this.localHostULPOptionTabControl.Size = new System.Drawing.Size(451, 411);
		this.localHostULPOptionTabControl.SizeMode = System.Windows.Forms.TabSizeMode.FillToRight;
		this.localHostULPOptionTabControl.TabIndex = 0;
		this.advertisingTabPage.Controls.Add(this.groupBox3);
		this.advertisingTabPage.Controls.Add(this.groupBox2);
		this.advertisingTabPage.Controls.Add(this.groupBox1);
		this.advertisingTabPage.Location = new System.Drawing.Point(4, 22);
		this.advertisingTabPage.Name = "advertisingTabPage";
		this.advertisingTabPage.Padding = new System.Windows.Forms.Padding(3);
		this.advertisingTabPage.Size = new System.Drawing.Size(443, 385);
		this.advertisingTabPage.TabIndex = 0;
		this.advertisingTabPage.Text = "Advertising";
		this.advertisingTabPage.UseVisualStyleBackColor = true;
		this.groupBox3.Controls.Add(this.advertisingDataTextBox);
		this.groupBox3.Controls.Add(this.advertisingDataLengthTextBox);
		this.groupBox3.Controls.Add(this.label9);
		this.groupBox3.Controls.Add(this.label10);
		this.groupBox3.Location = new System.Drawing.Point(7, 301);
		this.groupBox3.Name = "groupBox3";
		this.groupBox3.Size = new System.Drawing.Size(406, 79);
		this.groupBox3.TabIndex = 14;
		this.groupBox3.TabStop = false;
		this.groupBox3.Text = "LE Set Advertising Data";
		this.advertisingDataTextBox.Location = new System.Drawing.Point(123, 49);
		this.advertisingDataTextBox.Name = "advertisingDataTextBox";
		this.advertisingDataTextBox.Size = new System.Drawing.Size(244, 20);
		this.advertisingDataTextBox.TabIndex = 13;
		this.advertisingDataTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.advertisingDataTextBox.TextChanged += new System.EventHandler(advertisingDataTextBox_TextChanged);
		this.advertisingDataLengthTextBox.Enabled = false;
		this.advertisingDataLengthTextBox.Location = new System.Drawing.Point(123, 17);
		this.advertisingDataLengthTextBox.MaxLength = 1000;
		this.advertisingDataLengthTextBox.Name = "advertisingDataLengthTextBox";
		this.advertisingDataLengthTextBox.Size = new System.Drawing.Size(85, 20);
		this.advertisingDataLengthTextBox.TabIndex = 12;
		this.advertisingDataLengthTextBox.Text = "0";
		this.advertisingDataLengthTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label9.AutoSize = true;
		this.label9.Location = new System.Drawing.Point(10, 52);
		this.label9.Name = "label9";
		this.label9.Size = new System.Drawing.Size(30, 13);
		this.label9.TabIndex = 1;
		this.label9.Text = "Data";
		this.label10.AutoSize = true;
		this.label10.Location = new System.Drawing.Point(10, 20);
		this.label10.Name = "label10";
		this.label10.Size = new System.Drawing.Size(66, 13);
		this.label10.TabIndex = 0;
		this.label10.Text = "Data Length";
		this.groupBox2.Controls.Add(this.scanResponseDataTextBox);
		this.groupBox2.Controls.Add(this.scanResponseDataLengthTextBox);
		this.groupBox2.Controls.Add(this.label8);
		this.groupBox2.Controls.Add(this.label7);
		this.groupBox2.Location = new System.Drawing.Point(6, 225);
		this.groupBox2.Name = "groupBox2";
		this.groupBox2.Size = new System.Drawing.Size(406, 73);
		this.groupBox2.TabIndex = 1;
		this.groupBox2.TabStop = false;
		this.groupBox2.Text = "LE Set Scan Response Data";
		this.scanResponseDataTextBox.Location = new System.Drawing.Point(123, 45);
		this.scanResponseDataTextBox.Name = "scanResponseDataTextBox";
		this.scanResponseDataTextBox.Size = new System.Drawing.Size(244, 20);
		this.scanResponseDataTextBox.TabIndex = 13;
		this.scanResponseDataTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.scanResponseDataTextBox.TextChanged += new System.EventHandler(scanResponseDataTextBox_TextChanged);
		this.scanResponseDataLengthTextBox.Enabled = false;
		this.scanResponseDataLengthTextBox.Location = new System.Drawing.Point(123, 17);
		this.scanResponseDataLengthTextBox.MaxLength = 1000;
		this.scanResponseDataLengthTextBox.Name = "scanResponseDataLengthTextBox";
		this.scanResponseDataLengthTextBox.Size = new System.Drawing.Size(85, 20);
		this.scanResponseDataLengthTextBox.TabIndex = 12;
		this.scanResponseDataLengthTextBox.Text = "0";
		this.scanResponseDataLengthTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.scanResponseDataLengthTextBox.TextChanged += new System.EventHandler(scanResponseDataLengthTextBox_TextChanged);
		this.label8.AutoSize = true;
		this.label8.Location = new System.Drawing.Point(10, 48);
		this.label8.Name = "label8";
		this.label8.Size = new System.Drawing.Size(30, 13);
		this.label8.TabIndex = 1;
		this.label8.Text = "Data";
		this.label7.AutoSize = true;
		this.label7.Location = new System.Drawing.Point(10, 20);
		this.label7.Name = "label7";
		this.label7.Size = new System.Drawing.Size(66, 13);
		this.label7.TabIndex = 0;
		this.label7.Text = "Data Length";
		this.groupBox1.Controls.Add(this.groupBox13);
		this.groupBox1.Controls.Add(this.groupBox12);
		this.groupBox1.Controls.Add(this.peerAddressTextBox);
		this.groupBox1.Controls.Add(this.peerAddressTypeComboBox);
		this.groupBox1.Controls.Add(this.ownAddressTypeComboBox);
		this.groupBox1.Controls.Add(this.label6);
		this.groupBox1.Controls.Add(this.label5);
		this.groupBox1.Controls.Add(this.label4);
		this.groupBox1.Controls.Add(this.advertisingTypeComboBox);
		this.groupBox1.Controls.Add(this.label3);
		this.groupBox1.Controls.Add(this.advertisingMaxIntervalTextBox);
		this.groupBox1.Controls.Add(this.label2);
		this.groupBox1.Controls.Add(this.advertisingMinIntervalTextBox);
		this.groupBox1.Controls.Add(this.label1);
		this.groupBox1.Location = new System.Drawing.Point(7, 7);
		this.groupBox1.Name = "groupBox1";
		this.groupBox1.Size = new System.Drawing.Size(430, 211);
		this.groupBox1.TabIndex = 0;
		this.groupBox1.TabStop = false;
		this.groupBox1.Text = "LE Set Advertising Parameters";
		this.groupBox13.Controls.Add(this.filterPolicyComboBox);
		this.groupBox13.Location = new System.Drawing.Point(228, 165);
		this.groupBox13.Name = "groupBox13";
		this.groupBox13.Size = new System.Drawing.Size(202, 43);
		this.groupBox13.TabIndex = 13;
		this.groupBox13.TabStop = false;
		this.groupBox13.Text = "Filter Policy";
		this.filterPolicyComboBox.FormattingEnabled = true;
		this.filterPolicyComboBox.Location = new System.Drawing.Point(6, 14);
		this.filterPolicyComboBox.Name = "filterPolicyComboBox";
		this.filterPolicyComboBox.Size = new System.Drawing.Size(190, 21);
		this.filterPolicyComboBox.TabIndex = 0;
		this.filterPolicyComboBox.SelectedIndexChanged += new System.EventHandler(filterPolicyComboBox_SelectedIndexChanged);
		this.groupBox12.Controls.Add(this.index39CheckBox);
		this.groupBox12.Controls.Add(this.index38CheckBox);
		this.groupBox12.Controls.Add(this.index37CheckBox);
		this.groupBox12.Location = new System.Drawing.Point(7, 159);
		this.groupBox12.Name = "groupBox12";
		this.groupBox12.Size = new System.Drawing.Size(215, 49);
		this.groupBox12.TabIndex = 12;
		this.groupBox12.TabStop = false;
		this.groupBox12.Text = "Channel Map";
		this.index39CheckBox.AutoSize = true;
		this.index39CheckBox.Checked = true;
		this.index39CheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.index39CheckBox.Location = new System.Drawing.Point(147, 20);
		this.index39CheckBox.Name = "index39CheckBox";
		this.index39CheckBox.Size = new System.Drawing.Size(64, 17);
		this.index39CheckBox.TabIndex = 2;
		this.index39CheckBox.Text = "Index39";
		this.index39CheckBox.UseVisualStyleBackColor = true;
		this.index38CheckBox.AutoSize = true;
		this.index38CheckBox.Checked = true;
		this.index38CheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.index38CheckBox.Location = new System.Drawing.Point(77, 20);
		this.index38CheckBox.Name = "index38CheckBox";
		this.index38CheckBox.Size = new System.Drawing.Size(64, 17);
		this.index38CheckBox.TabIndex = 1;
		this.index38CheckBox.Text = "Index38";
		this.index38CheckBox.UseVisualStyleBackColor = true;
		this.index37CheckBox.AutoSize = true;
		this.index37CheckBox.Checked = true;
		this.index37CheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.index37CheckBox.Location = new System.Drawing.Point(7, 20);
		this.index37CheckBox.Name = "index37CheckBox";
		this.index37CheckBox.Size = new System.Drawing.Size(64, 17);
		this.index37CheckBox.TabIndex = 0;
		this.index37CheckBox.Text = "Index37";
		this.index37CheckBox.UseVisualStyleBackColor = true;
		this.peerAddressTextBox.Location = new System.Drawing.Point(123, 139);
		this.peerAddressTextBox.MaxLength = 12;
		this.peerAddressTextBox.Name = "peerAddressTextBox";
		this.peerAddressTextBox.Size = new System.Drawing.Size(200, 20);
		this.peerAddressTextBox.TabIndex = 11;
		this.peerAddressTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.peerAddressTextBox.TextChanged += new System.EventHandler(peerAddressTextBox_TextChanged);
		this.peerAddressTypeComboBox.FormattingEnabled = true;
		this.peerAddressTypeComboBox.Location = new System.Drawing.Point(123, 108);
		this.peerAddressTypeComboBox.Name = "peerAddressTypeComboBox";
		this.peerAddressTypeComboBox.Size = new System.Drawing.Size(305, 21);
		this.peerAddressTypeComboBox.TabIndex = 10;
		this.peerAddressTypeComboBox.SelectedIndexChanged += new System.EventHandler(peerAddressTypeComboBox_SelectedIndexChanged);
		this.ownAddressTypeComboBox.FormattingEnabled = true;
		this.ownAddressTypeComboBox.Location = new System.Drawing.Point(123, 75);
		this.ownAddressTypeComboBox.Name = "ownAddressTypeComboBox";
		this.ownAddressTypeComboBox.Size = new System.Drawing.Size(305, 21);
		this.ownAddressTypeComboBox.TabIndex = 9;
		this.ownAddressTypeComboBox.SelectedIndexChanged += new System.EventHandler(ownAddressTypeComboBox_SelectedIndexChanged);
		this.label6.AutoSize = true;
		this.label6.Location = new System.Drawing.Point(7, 142);
		this.label6.Name = "label6";
		this.label6.Size = new System.Drawing.Size(70, 13);
		this.label6.TabIndex = 8;
		this.label6.Text = "Peer Address";
		this.label5.AutoSize = true;
		this.label5.Location = new System.Drawing.Point(7, 111);
		this.label5.Name = "label5";
		this.label5.Size = new System.Drawing.Size(97, 13);
		this.label5.TabIndex = 7;
		this.label5.Text = "Peer Address Type";
		this.label4.AutoSize = true;
		this.label4.Location = new System.Drawing.Point(7, 78);
		this.label4.Name = "label4";
		this.label4.Size = new System.Drawing.Size(97, 13);
		this.label4.TabIndex = 6;
		this.label4.Text = "Own Address Type";
		this.advertisingTypeComboBox.FormattingEnabled = true;
		this.advertisingTypeComboBox.Location = new System.Drawing.Point(123, 42);
		this.advertisingTypeComboBox.Name = "advertisingTypeComboBox";
		this.advertisingTypeComboBox.Size = new System.Drawing.Size(305, 21);
		this.advertisingTypeComboBox.TabIndex = 5;
		this.advertisingTypeComboBox.SelectedIndexChanged += new System.EventHandler(advertisingTypeComboBox_SelectedIndexChanged);
		this.label3.AutoSize = true;
		this.label3.Location = new System.Drawing.Point(7, 45);
		this.label3.Name = "label3";
		this.label3.Size = new System.Drawing.Size(86, 13);
		this.label3.TabIndex = 4;
		this.label3.Text = "Advertising Type";
		this.advertisingMaxIntervalTextBox.Location = new System.Drawing.Point(302, 17);
		this.advertisingMaxIntervalTextBox.MaxLength = 5;
		this.advertisingMaxIntervalTextBox.Name = "advertisingMaxIntervalTextBox";
		this.advertisingMaxIntervalTextBox.Size = new System.Drawing.Size(85, 20);
		this.advertisingMaxIntervalTextBox.TabIndex = 3;
		this.advertisingMaxIntervalTextBox.Text = "20";
		this.advertisingMaxIntervalTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.advertisingMaxIntervalTextBox.Leave += new System.EventHandler(advertisingMaxIntervalTextBox_Leave);
		this.label2.AutoSize = true;
		this.label2.Location = new System.Drawing.Point(200, 20);
		this.label2.Name = "label2";
		this.label2.Size = new System.Drawing.Size(99, 13);
		this.label2.TabIndex = 2;
		this.label2.Text = "Max Interval (msec)";
		this.advertisingMinIntervalTextBox.Location = new System.Drawing.Point(109, 17);
		this.advertisingMinIntervalTextBox.MaxLength = 5;
		this.advertisingMinIntervalTextBox.Name = "advertisingMinIntervalTextBox";
		this.advertisingMinIntervalTextBox.Size = new System.Drawing.Size(85, 20);
		this.advertisingMinIntervalTextBox.TabIndex = 1;
		this.advertisingMinIntervalTextBox.Text = "20";
		this.advertisingMinIntervalTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.advertisingMinIntervalTextBox.Leave += new System.EventHandler(advertisingMinIntervalTextBox_Leave);
		this.label1.AutoSize = true;
		this.label1.Location = new System.Drawing.Point(7, 20);
		this.label1.Name = "label1";
		this.label1.Size = new System.Drawing.Size(96, 13);
		this.label1.TabIndex = 0;
		this.label1.Text = "Min Interval (msec)";
		this.scanningTabPage.Controls.Add(this.groupBox7);
		this.scanningTabPage.Controls.Add(this.groupBox5);
		this.scanningTabPage.Controls.Add(this.groupBox4);
		this.scanningTabPage.Location = new System.Drawing.Point(4, 22);
		this.scanningTabPage.Name = "scanningTabPage";
		this.scanningTabPage.Padding = new System.Windows.Forms.Padding(3);
		this.scanningTabPage.Size = new System.Drawing.Size(443, 385);
		this.scanningTabPage.TabIndex = 1;
		this.scanningTabPage.Text = "Scanning";
		this.scanningTabPage.UseVisualStyleBackColor = true;
		this.groupBox7.Controls.Add(this.leFilterAddress6TextBox);
		this.groupBox7.Controls.Add(this.leFilterAddress5TextBox);
		this.groupBox7.Controls.Add(this.leFilterAddress4TextBox);
		this.groupBox7.Controls.Add(this.leFilterAddress3TextBox);
		this.groupBox7.Controls.Add(this.leFilterAddress2TextBox);
		this.groupBox7.Controls.Add(this.leFilterAddress1TextBox);
		this.groupBox7.Location = new System.Drawing.Point(13, 287);
		this.groupBox7.Name = "groupBox7";
		this.groupBox7.Size = new System.Drawing.Size(405, 80);
		this.groupBox7.TabIndex = 2;
		this.groupBox7.TabStop = false;
		this.groupBox7.Text = "Filter LE Address";
		this.leFilterAddress6TextBox.Location = new System.Drawing.Point(242, 35);
		this.leFilterAddress6TextBox.MaxLength = 2;
		this.leFilterAddress6TextBox.Name = "leFilterAddress6TextBox";
		this.leFilterAddress6TextBox.Size = new System.Drawing.Size(41, 20);
		this.leFilterAddress6TextBox.TabIndex = 5;
		this.leFilterAddress6TextBox.Text = "FF";
		this.leFilterAddress5TextBox.Location = new System.Drawing.Point(195, 35);
		this.leFilterAddress5TextBox.MaxLength = 2;
		this.leFilterAddress5TextBox.Name = "leFilterAddress5TextBox";
		this.leFilterAddress5TextBox.Size = new System.Drawing.Size(41, 20);
		this.leFilterAddress5TextBox.TabIndex = 4;
		this.leFilterAddress5TextBox.Text = "FF";
		this.leFilterAddress4TextBox.Location = new System.Drawing.Point(148, 35);
		this.leFilterAddress4TextBox.MaxLength = 2;
		this.leFilterAddress4TextBox.Name = "leFilterAddress4TextBox";
		this.leFilterAddress4TextBox.Size = new System.Drawing.Size(41, 20);
		this.leFilterAddress4TextBox.TabIndex = 3;
		this.leFilterAddress4TextBox.Text = "FF";
		this.leFilterAddress3TextBox.Location = new System.Drawing.Point(101, 35);
		this.leFilterAddress3TextBox.MaxLength = 2;
		this.leFilterAddress3TextBox.Name = "leFilterAddress3TextBox";
		this.leFilterAddress3TextBox.Size = new System.Drawing.Size(41, 20);
		this.leFilterAddress3TextBox.TabIndex = 2;
		this.leFilterAddress3TextBox.Text = "FF";
		this.leFilterAddress2TextBox.Location = new System.Drawing.Point(54, 35);
		this.leFilterAddress2TextBox.MaxLength = 2;
		this.leFilterAddress2TextBox.Name = "leFilterAddress2TextBox";
		this.leFilterAddress2TextBox.Size = new System.Drawing.Size(41, 20);
		this.leFilterAddress2TextBox.TabIndex = 1;
		this.leFilterAddress2TextBox.Text = "FF";
		this.leFilterAddress1TextBox.Location = new System.Drawing.Point(7, 35);
		this.leFilterAddress1TextBox.MaxLength = 2;
		this.leFilterAddress1TextBox.Name = "leFilterAddress1TextBox";
		this.leFilterAddress1TextBox.Size = new System.Drawing.Size(41, 20);
		this.leFilterAddress1TextBox.TabIndex = 0;
		this.leFilterAddress1TextBox.Text = "FF";
		this.groupBox5.Controls.Add(this.filterDuplicatesCheckBox);
		this.groupBox5.Location = new System.Drawing.Point(12, 201);
		this.groupBox5.Name = "groupBox5";
		this.groupBox5.Size = new System.Drawing.Size(406, 67);
		this.groupBox5.TabIndex = 1;
		this.groupBox5.TabStop = false;
		this.groupBox5.Text = "Scan Enable Parameters";
		this.filterDuplicatesCheckBox.AutoSize = true;
		this.filterDuplicatesCheckBox.Location = new System.Drawing.Point(6, 29);
		this.filterDuplicatesCheckBox.Name = "filterDuplicatesCheckBox";
		this.filterDuplicatesCheckBox.Size = new System.Drawing.Size(101, 17);
		this.filterDuplicatesCheckBox.TabIndex = 9;
		this.filterDuplicatesCheckBox.Text = "Filter Duplicates";
		this.filterDuplicatesCheckBox.UseVisualStyleBackColor = true;
		this.groupBox4.Controls.Add(this.scanFilterPolicyCheckBox);
		this.groupBox4.Controls.Add(this.scanWindowTextBox);
		this.groupBox4.Controls.Add(this.scanIntervalTextBox);
		this.groupBox4.Controls.Add(this.scanningAddressTypeComboBox);
		this.groupBox4.Controls.Add(this.scanTypeComboBox);
		this.groupBox4.Controls.Add(this.label14);
		this.groupBox4.Controls.Add(this.label13);
		this.groupBox4.Controls.Add(this.label12);
		this.groupBox4.Controls.Add(this.label11);
		this.groupBox4.Location = new System.Drawing.Point(7, 16);
		this.groupBox4.Name = "groupBox4";
		this.groupBox4.Size = new System.Drawing.Size(406, 179);
		this.groupBox4.TabIndex = 0;
		this.groupBox4.TabStop = false;
		this.groupBox4.Text = "Scanning Parameters";
		this.scanFilterPolicyCheckBox.AutoSize = true;
		this.scanFilterPolicyCheckBox.Location = new System.Drawing.Point(13, 138);
		this.scanFilterPolicyCheckBox.Name = "scanFilterPolicyCheckBox";
		this.scanFilterPolicyCheckBox.Size = new System.Drawing.Size(107, 17);
		this.scanFilterPolicyCheckBox.TabIndex = 8;
		this.scanFilterPolicyCheckBox.Text = "Scan Filter Policy";
		this.scanFilterPolicyCheckBox.UseVisualStyleBackColor = true;
		this.scanWindowTextBox.Location = new System.Drawing.Point(134, 102);
		this.scanWindowTextBox.MaxLength = 5;
		this.scanWindowTextBox.Name = "scanWindowTextBox";
		this.scanWindowTextBox.Size = new System.Drawing.Size(100, 20);
		this.scanWindowTextBox.TabIndex = 7;
		this.scanWindowTextBox.Text = "20";
		this.scanWindowTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.scanIntervalTextBox.Location = new System.Drawing.Point(134, 71);
		this.scanIntervalTextBox.MaxLength = 5;
		this.scanIntervalTextBox.Name = "scanIntervalTextBox";
		this.scanIntervalTextBox.Size = new System.Drawing.Size(100, 20);
		this.scanIntervalTextBox.TabIndex = 6;
		this.scanIntervalTextBox.Text = "20";
		this.scanIntervalTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.scanningAddressTypeComboBox.FormattingEnabled = true;
		this.scanningAddressTypeComboBox.Location = new System.Drawing.Point(134, 43);
		this.scanningAddressTypeComboBox.Name = "scanningAddressTypeComboBox";
		this.scanningAddressTypeComboBox.Size = new System.Drawing.Size(266, 21);
		this.scanningAddressTypeComboBox.TabIndex = 5;
		this.scanningAddressTypeComboBox.SelectedIndexChanged += new System.EventHandler(scanningAddressTypeComboBox_SelectedIndexChanged);
		this.scanTypeComboBox.FormattingEnabled = true;
		this.scanTypeComboBox.Location = new System.Drawing.Point(134, 17);
		this.scanTypeComboBox.Name = "scanTypeComboBox";
		this.scanTypeComboBox.Size = new System.Drawing.Size(266, 21);
		this.scanTypeComboBox.TabIndex = 4;
		this.scanTypeComboBox.SelectedIndexChanged += new System.EventHandler(scanTypeComboBox_SelectedIndexChanged);
		this.label14.AutoSize = true;
		this.label14.Location = new System.Drawing.Point(7, 105);
		this.label14.Name = "label14";
		this.label14.Size = new System.Drawing.Size(108, 13);
		this.label14.TabIndex = 3;
		this.label14.Text = "Scan Window (msec)";
		this.label13.AutoSize = true;
		this.label13.Location = new System.Drawing.Point(7, 74);
		this.label13.Name = "label13";
		this.label13.Size = new System.Drawing.Size(104, 13);
		this.label13.TabIndex = 2;
		this.label13.Text = "Scan Interval (msec)";
		this.label12.AutoSize = true;
		this.label12.Location = new System.Drawing.Point(7, 46);
		this.label12.Name = "label12";
		this.label12.Size = new System.Drawing.Size(97, 13);
		this.label12.TabIndex = 1;
		this.label12.Text = "Own Address Type";
		this.label11.AutoSize = true;
		this.label11.Location = new System.Drawing.Point(7, 20);
		this.label11.Name = "label11";
		this.label11.Size = new System.Drawing.Size(59, 13);
		this.label11.TabIndex = 0;
		this.label11.Text = "Scan Type";
		this.createLLConnectionTabPage.Controls.Add(this.groupBox11);
		this.createLLConnectionTabPage.Controls.Add(this.groupBox10);
		this.createLLConnectionTabPage.Controls.Add(this.groupBox9);
		this.createLLConnectionTabPage.Controls.Add(this.groupBox8);
		this.createLLConnectionTabPage.Controls.Add(this.groupBox6);
		this.createLLConnectionTabPage.Location = new System.Drawing.Point(4, 22);
		this.createLLConnectionTabPage.Name = "createLLConnectionTabPage";
		this.createLLConnectionTabPage.Padding = new System.Windows.Forms.Padding(3);
		this.createLLConnectionTabPage.Size = new System.Drawing.Size(443, 385);
		this.createLLConnectionTabPage.TabIndex = 2;
		this.createLLConnectionTabPage.Text = "Create LL Connection";
		this.createLLConnectionTabPage.UseVisualStyleBackColor = true;
		this.groupBox11.Controls.Add(this.initiatorWhiteListCheckBox);
		this.groupBox11.Location = new System.Drawing.Point(228, 222);
		this.groupBox11.Name = "groupBox11";
		this.groupBox11.Size = new System.Drawing.Size(165, 88);
		this.groupBox11.TabIndex = 10;
		this.groupBox11.TabStop = false;
		this.groupBox11.Text = "Other Settings";
		this.initiatorWhiteListCheckBox.AutoSize = true;
		this.initiatorWhiteListCheckBox.Location = new System.Drawing.Point(7, 34);
		this.initiatorWhiteListCheckBox.Name = "initiatorWhiteListCheckBox";
		this.initiatorWhiteListCheckBox.Size = new System.Drawing.Size(110, 17);
		this.initiatorWhiteListCheckBox.TabIndex = 0;
		this.initiatorWhiteListCheckBox.Text = "Initiator White List";
		this.initiatorWhiteListCheckBox.UseVisualStyleBackColor = true;
		this.groupBox10.Controls.Add(this.connectionScanTimingScanWindowTextBox);
		this.groupBox10.Controls.Add(this.label20);
		this.groupBox10.Controls.Add(this.connectionScanTimingScanIntervalTextBox);
		this.groupBox10.Controls.Add(this.label21);
		this.groupBox10.Location = new System.Drawing.Point(21, 222);
		this.groupBox10.Name = "groupBox10";
		this.groupBox10.Size = new System.Drawing.Size(195, 88);
		this.groupBox10.TabIndex = 9;
		this.groupBox10.TabStop = false;
		this.groupBox10.Text = "Connection Scan Timings";
		this.connectionScanTimingScanWindowTextBox.Location = new System.Drawing.Point(117, 51);
		this.connectionScanTimingScanWindowTextBox.MaxLength = 5;
		this.connectionScanTimingScanWindowTextBox.Name = "connectionScanTimingScanWindowTextBox";
		this.connectionScanTimingScanWindowTextBox.Size = new System.Drawing.Size(70, 20);
		this.connectionScanTimingScanWindowTextBox.TabIndex = 3;
		this.connectionScanTimingScanWindowTextBox.Text = "20";
		this.connectionScanTimingScanWindowTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label20.AutoSize = true;
		this.label20.Location = new System.Drawing.Point(7, 54);
		this.label20.Name = "label20";
		this.label20.Size = new System.Drawing.Size(108, 13);
		this.label20.TabIndex = 2;
		this.label20.Text = "Scan Window (msec)";
		this.connectionScanTimingScanIntervalTextBox.Location = new System.Drawing.Point(117, 17);
		this.connectionScanTimingScanIntervalTextBox.MaxLength = 5;
		this.connectionScanTimingScanIntervalTextBox.Name = "connectionScanTimingScanIntervalTextBox";
		this.connectionScanTimingScanIntervalTextBox.Size = new System.Drawing.Size(70, 20);
		this.connectionScanTimingScanIntervalTextBox.TabIndex = 1;
		this.connectionScanTimingScanIntervalTextBox.Text = "20";
		this.connectionScanTimingScanIntervalTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label21.AutoSize = true;
		this.label21.Location = new System.Drawing.Point(7, 20);
		this.label21.Name = "label21";
		this.label21.Size = new System.Drawing.Size(104, 13);
		this.label21.TabIndex = 0;
		this.label21.Text = "Scan Interval (msec)";
		this.groupBox9.Controls.Add(this.connectionEventTimingMaxLengthTextBox);
		this.groupBox9.Controls.Add(this.label22);
		this.groupBox9.Controls.Add(this.connectionEventTimingMinLengthTextBox);
		this.groupBox9.Controls.Add(this.label23);
		this.groupBox9.Location = new System.Drawing.Point(21, 163);
		this.groupBox9.Name = "groupBox9";
		this.groupBox9.Size = new System.Drawing.Size(372, 53);
		this.groupBox9.TabIndex = 8;
		this.groupBox9.TabStop = false;
		this.groupBox9.Text = "Connection Event Timings";
		this.connectionEventTimingMaxLengthTextBox.Location = new System.Drawing.Point(290, 17);
		this.connectionEventTimingMaxLengthTextBox.MaxLength = 10;
		this.connectionEventTimingMaxLengthTextBox.Name = "connectionEventTimingMaxLengthTextBox";
		this.connectionEventTimingMaxLengthTextBox.Size = new System.Drawing.Size(70, 20);
		this.connectionEventTimingMaxLengthTextBox.TabIndex = 3;
		this.connectionEventTimingMaxLengthTextBox.Text = "0";
		this.connectionEventTimingMaxLengthTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label22.AutoSize = true;
		this.label22.Location = new System.Drawing.Point(185, 20);
		this.label22.Name = "label22";
		this.label22.Size = new System.Drawing.Size(97, 13);
		this.label22.TabIndex = 2;
		this.label22.Text = "Max Length (msec)";
		this.connectionEventTimingMinLengthTextBox.Location = new System.Drawing.Point(109, 17);
		this.connectionEventTimingMinLengthTextBox.MaxLength = 10;
		this.connectionEventTimingMinLengthTextBox.Name = "connectionEventTimingMinLengthTextBox";
		this.connectionEventTimingMinLengthTextBox.Size = new System.Drawing.Size(70, 20);
		this.connectionEventTimingMinLengthTextBox.TabIndex = 1;
		this.connectionEventTimingMinLengthTextBox.Text = "0";
		this.connectionEventTimingMinLengthTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label23.AutoSize = true;
		this.label23.Location = new System.Drawing.Point(7, 20);
		this.label23.Name = "label23";
		this.label23.Size = new System.Drawing.Size(94, 13);
		this.label23.TabIndex = 0;
		this.label23.Text = "Min Length (msec)";
		this.groupBox8.Controls.Add(this.connectionTimingLatencyTextBox);
		this.groupBox8.Controls.Add(this.label19);
		this.groupBox8.Controls.Add(this.connectionTimingTimeoutTextBox);
		this.groupBox8.Controls.Add(this.label18);
		this.groupBox8.Controls.Add(this.connectionTimingIntervalMaxTextBox);
		this.groupBox8.Controls.Add(this.label17);
		this.groupBox8.Controls.Add(this.connectionTimingIntervalMinTextBox);
		this.groupBox8.Controls.Add(this.label16);
		this.groupBox8.Location = new System.Drawing.Point(21, 69);
		this.groupBox8.Name = "groupBox8";
		this.groupBox8.Size = new System.Drawing.Size(372, 88);
		this.groupBox8.TabIndex = 2;
		this.groupBox8.TabStop = false;
		this.groupBox8.Text = "Connection Timings";
		this.connectionTimingLatencyTextBox.Location = new System.Drawing.Point(290, 51);
		this.connectionTimingLatencyTextBox.MaxLength = 5;
		this.connectionTimingLatencyTextBox.Name = "connectionTimingLatencyTextBox";
		this.connectionTimingLatencyTextBox.Size = new System.Drawing.Size(70, 20);
		this.connectionTimingLatencyTextBox.TabIndex = 7;
		this.connectionTimingLatencyTextBox.Text = "0";
		this.connectionTimingLatencyTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label19.AutoSize = true;
		this.label19.Location = new System.Drawing.Point(185, 54);
		this.label19.Name = "label19";
		this.label19.Size = new System.Drawing.Size(45, 13);
		this.label19.TabIndex = 6;
		this.label19.Text = "Latency";
		this.connectionTimingTimeoutTextBox.Location = new System.Drawing.Point(109, 51);
		this.connectionTimingTimeoutTextBox.MaxLength = 5;
		this.connectionTimingTimeoutTextBox.Name = "connectionTimingTimeoutTextBox";
		this.connectionTimingTimeoutTextBox.Size = new System.Drawing.Size(70, 20);
		this.connectionTimingTimeoutTextBox.TabIndex = 5;
		this.connectionTimingTimeoutTextBox.Text = "10000";
		this.connectionTimingTimeoutTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label18.AutoSize = true;
		this.label18.Location = new System.Drawing.Point(7, 54);
		this.label18.Name = "label18";
		this.label18.Size = new System.Drawing.Size(79, 13);
		this.label18.TabIndex = 4;
		this.label18.Text = "Timeout (msec)";
		this.connectionTimingIntervalMaxTextBox.Location = new System.Drawing.Point(290, 17);
		this.connectionTimingIntervalMaxTextBox.MaxLength = 5;
		this.connectionTimingIntervalMaxTextBox.Name = "connectionTimingIntervalMaxTextBox";
		this.connectionTimingIntervalMaxTextBox.Size = new System.Drawing.Size(70, 20);
		this.connectionTimingIntervalMaxTextBox.TabIndex = 3;
		this.connectionTimingIntervalMaxTextBox.Text = "40";
		this.connectionTimingIntervalMaxTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label17.AutoSize = true;
		this.label17.Location = new System.Drawing.Point(185, 20);
		this.label17.Name = "label17";
		this.label17.Size = new System.Drawing.Size(99, 13);
		this.label17.TabIndex = 2;
		this.label17.Text = "Interval Max (msec)";
		this.connectionTimingIntervalMinTextBox.Location = new System.Drawing.Point(109, 17);
		this.connectionTimingIntervalMinTextBox.MaxLength = 5;
		this.connectionTimingIntervalMinTextBox.Name = "connectionTimingIntervalMinTextBox";
		this.connectionTimingIntervalMinTextBox.Size = new System.Drawing.Size(70, 20);
		this.connectionTimingIntervalMinTextBox.TabIndex = 1;
		this.connectionTimingIntervalMinTextBox.Text = "40";
		this.connectionTimingIntervalMinTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label16.AutoSize = true;
		this.label16.Location = new System.Drawing.Point(7, 20);
		this.label16.Name = "label16";
		this.label16.Size = new System.Drawing.Size(96, 13);
		this.label16.TabIndex = 0;
		this.label16.Text = "Interval Min (msec)";
		this.groupBox6.Controls.Add(this.addressTypeOwnComboBox);
		this.groupBox6.Controls.Add(this.label15);
		this.groupBox6.Location = new System.Drawing.Point(21, 7);
		this.groupBox6.Name = "groupBox6";
		this.groupBox6.Size = new System.Drawing.Size(372, 56);
		this.groupBox6.TabIndex = 0;
		this.groupBox6.TabStop = false;
		this.groupBox6.Text = "Address Information";
		this.addressTypeOwnComboBox.FormattingEnabled = true;
		this.addressTypeOwnComboBox.Location = new System.Drawing.Point(116, 17);
		this.addressTypeOwnComboBox.Name = "addressTypeOwnComboBox";
		this.addressTypeOwnComboBox.Size = new System.Drawing.Size(216, 21);
		this.addressTypeOwnComboBox.TabIndex = 1;
		this.addressTypeOwnComboBox.SelectedIndexChanged += new System.EventHandler(addressTypeOwnComboBox_SelectedIndexChanged);
		this.label15.AutoSize = true;
		this.label15.Location = new System.Drawing.Point(7, 20);
		this.label15.Name = "label15";
		this.label15.Size = new System.Drawing.Size(103, 13);
		this.label15.TabIndex = 0;
		this.label15.Text = "Address Type (Own)";
		this.tabPageEncryption.Controls.Add(this.groupBox15);
		this.tabPageEncryption.Controls.Add(this.groupBox14);
		this.tabPageEncryption.Location = new System.Drawing.Point(4, 22);
		this.tabPageEncryption.Name = "tabPageEncryption";
		this.tabPageEncryption.Padding = new System.Windows.Forms.Padding(3);
		this.tabPageEncryption.Size = new System.Drawing.Size(443, 385);
		this.tabPageEncryption.TabIndex = 3;
		this.tabPageEncryption.Text = "Encryption";
		this.tabPageEncryption.UseVisualStyleBackColor = true;
		this.groupBox15.Controls.Add(this.negativeRadioButton);
		this.groupBox15.Controls.Add(this.positiveRadioButton);
		this.groupBox15.Location = new System.Drawing.Point(12, 207);
		this.groupBox15.Name = "groupBox15";
		this.groupBox15.Size = new System.Drawing.Size(440, 69);
		this.groupBox15.TabIndex = 2;
		this.groupBox15.TabStop = false;
		this.groupBox15.Text = "Auto Reply";
		this.negativeRadioButton.AutoSize = true;
		this.negativeRadioButton.Location = new System.Drawing.Point(137, 31);
		this.negativeRadioButton.Name = "negativeRadioButton";
		this.negativeRadioButton.Size = new System.Drawing.Size(68, 17);
		this.negativeRadioButton.TabIndex = 1;
		this.negativeRadioButton.Text = "Negative";
		this.negativeRadioButton.UseVisualStyleBackColor = true;
		this.positiveRadioButton.AutoSize = true;
		this.positiveRadioButton.Checked = true;
		this.positiveRadioButton.Location = new System.Drawing.Point(23, 31);
		this.positiveRadioButton.Name = "positiveRadioButton";
		this.positiveRadioButton.Size = new System.Drawing.Size(62, 17);
		this.positiveRadioButton.TabIndex = 0;
		this.positiveRadioButton.TabStop = true;
		this.positiveRadioButton.Text = "Positive";
		this.positiveRadioButton.UseVisualStyleBackColor = true;
		this.groupBox14.Controls.Add(this.reverseRandomNumberButton);
		this.groupBox14.Controls.Add(this.reverseLongTermKeyButton);
		this.groupBox14.Controls.Add(this.encryptedDiversifierTextBox);
		this.groupBox14.Controls.Add(this.randomNumberComboBox);
		this.groupBox14.Controls.Add(this.longTermKeyComboBox);
		this.groupBox14.Controls.Add(this.label26);
		this.groupBox14.Controls.Add(this.label25);
		this.groupBox14.Controls.Add(this.label24);
		this.groupBox14.Location = new System.Drawing.Point(7, 45);
		this.groupBox14.Name = "groupBox14";
		this.groupBox14.Size = new System.Drawing.Size(430, 130);
		this.groupBox14.TabIndex = 0;
		this.groupBox14.TabStop = false;
		this.groupBox14.Text = "Encryption Parameters";
		this.reverseRandomNumberButton.Location = new System.Drawing.Point(344, 59);
		this.reverseRandomNumberButton.Name = "reverseRandomNumberButton";
		this.reverseRandomNumberButton.Size = new System.Drawing.Size(75, 23);
		this.reverseRandomNumberButton.TabIndex = 31;
		this.reverseRandomNumberButton.Text = "Reverse";
		this.reverseRandomNumberButton.UseVisualStyleBackColor = true;
		this.reverseRandomNumberButton.Click += new System.EventHandler(reverseRandomNumberButton_Click);
		this.reverseLongTermKeyButton.Location = new System.Drawing.Point(344, 32);
		this.reverseLongTermKeyButton.Name = "reverseLongTermKeyButton";
		this.reverseLongTermKeyButton.Size = new System.Drawing.Size(75, 23);
		this.reverseLongTermKeyButton.TabIndex = 31;
		this.reverseLongTermKeyButton.Text = "Reverse";
		this.reverseLongTermKeyButton.UseVisualStyleBackColor = true;
		this.reverseLongTermKeyButton.Click += new System.EventHandler(reverseLongTermKeyButton_Click);
		this.encryptedDiversifierTextBox.Location = new System.Drawing.Point(117, 92);
		this.encryptedDiversifierTextBox.MaxLength = 4;
		this.encryptedDiversifierTextBox.Name = "encryptedDiversifierTextBox";
		this.encryptedDiversifierTextBox.Size = new System.Drawing.Size(221, 20);
		this.encryptedDiversifierTextBox.TabIndex = 5;
		this.encryptedDiversifierTextBox.Text = "0000";
		this.encryptedDiversifierTextBox.TextChanged += new System.EventHandler(encryptedDiversifierTextBox_TextChanged);
		this.randomNumberComboBox.FormattingEnabled = true;
		this.randomNumberComboBox.Location = new System.Drawing.Point(117, 61);
		this.randomNumberComboBox.MaxLength = 16;
		this.randomNumberComboBox.Name = "randomNumberComboBox";
		this.randomNumberComboBox.Size = new System.Drawing.Size(221, 21);
		this.randomNumberComboBox.TabIndex = 4;
		this.randomNumberComboBox.Text = "0102030405060708";
		this.randomNumberComboBox.SelectedIndexChanged += new System.EventHandler(randomNumberComboBox_SelectedIndexChanged);
		this.longTermKeyComboBox.FormattingEnabled = true;
		this.longTermKeyComboBox.Location = new System.Drawing.Point(117, 34);
		this.longTermKeyComboBox.MaxLength = 32;
		this.longTermKeyComboBox.Name = "longTermKeyComboBox";
		this.longTermKeyComboBox.Size = new System.Drawing.Size(221, 21);
		this.longTermKeyComboBox.TabIndex = 30;
		this.longTermKeyComboBox.Text = "0102030405060708090A0B0C0D0E0F10";
		this.longTermKeyComboBox.TextChanged += new System.EventHandler(longTermKeyComboBox_TextChanged);
		this.label26.AutoSize = true;
		this.label26.Location = new System.Drawing.Point(7, 95);
		this.label26.Name = "label26";
		this.label26.Size = new System.Drawing.Size(104, 13);
		this.label26.TabIndex = 2;
		this.label26.Text = "Encrypted Diversifier";
		this.label25.AutoSize = true;
		this.label25.Location = new System.Drawing.Point(7, 64);
		this.label25.Name = "label25";
		this.label25.Size = new System.Drawing.Size(87, 13);
		this.label25.TabIndex = 1;
		this.label25.Text = "Random Number";
		this.label24.AutoSize = true;
		this.label24.Location = new System.Drawing.Point(7, 37);
		this.label24.Name = "label24";
		this.label24.Size = new System.Drawing.Size(79, 13);
		this.label24.TabIndex = 0;
		this.label24.Text = "Long Term Key";
		this.tabPageIsoOptions.Controls.Add(this.groupBox17);
		this.tabPageIsoOptions.Controls.Add(this.groupBox16);
		this.tabPageIsoOptions.Location = new System.Drawing.Point(4, 22);
		this.tabPageIsoOptions.Name = "tabPageIsoOptions";
		this.tabPageIsoOptions.Size = new System.Drawing.Size(443, 385);
		this.tabPageIsoOptions.TabIndex = 4;
		this.tabPageIsoOptions.Text = "ISO Options";
		this.tabPageIsoOptions.UseVisualStyleBackColor = true;
		this.groupBox17.Controls.Add(this.checkBoxAutoAcceptIco);
		this.groupBox17.Location = new System.Drawing.Point(8, 336);
		this.groupBox17.Name = "groupBox17";
		this.groupBox17.Size = new System.Drawing.Size(431, 39);
		this.groupBox17.TabIndex = 27;
		this.groupBox17.TabStop = false;
		this.groupBox17.Text = "Auto Reply";
		this.checkBoxAutoAcceptIco.AutoSize = true;
		this.checkBoxAutoAcceptIco.Location = new System.Drawing.Point(10, 17);
		this.checkBoxAutoAcceptIco.Name = "checkBoxAutoAcceptIco";
		this.checkBoxAutoAcceptIco.Size = new System.Drawing.Size(190, 17);
		this.checkBoxAutoAcceptIco.TabIndex = 16;
		this.checkBoxAutoAcceptIco.Text = "Auto Accept ISO channel requests";
		this.checkBoxAutoAcceptIco.UseVisualStyleBackColor = true;
		this.groupBox16.Controls.Add(this.checkBoxFraming);
		this.groupBox16.Controls.Add(this.groupBox21);
		this.groupBox16.Controls.Add(this.groupBox20);
		this.groupBox16.Controls.Add(this.label34);
		this.groupBox16.Controls.Add(this.textBoxSca);
		this.groupBox16.Controls.Add(this.textBoxPacking);
		this.groupBox16.Controls.Add(this.label33);
		this.groupBox16.Controls.Add(this.textBoxNumCis);
		this.groupBox16.Controls.Add(this.label28);
		this.groupBox16.Controls.Add(this.label27);
		this.groupBox16.Controls.Add(this.textBoxNumSubevents);
		this.groupBox16.Controls.Add(this.label30);
		this.groupBox16.Controls.Add(this.textBoxIsoInterval);
		this.groupBox16.Controls.Add(this.label29);
		this.groupBox16.Controls.Add(this.textBoxCigId);
		this.groupBox16.Location = new System.Drawing.Point(3, 3);
		this.groupBox16.Name = "groupBox16";
		this.groupBox16.Size = new System.Drawing.Size(444, 351);
		this.groupBox16.TabIndex = 24;
		this.groupBox16.TabStop = false;
		this.groupBox16.Text = "LE CIG Parameters";
		this.label34.AutoSize = true;
		this.label34.Location = new System.Drawing.Point(345, 80);
		this.label34.Name = "label34";
		this.label34.Size = new System.Drawing.Size(31, 13);
		this.label34.TabIndex = 33;
		this.label34.Text = "SCA:";
		this.textBoxSca.Location = new System.Drawing.Point(379, 77);
		this.textBoxSca.Name = "textBoxSca";
		this.textBoxSca.Size = new System.Drawing.Size(59, 20);
		this.textBoxSca.TabIndex = 32;
		this.textBoxPacking.Location = new System.Drawing.Point(379, 24);
		this.textBoxPacking.Name = "textBoxPacking";
		this.textBoxPacking.Size = new System.Drawing.Size(59, 20);
		this.textBoxPacking.TabIndex = 31;
		this.label33.AutoSize = true;
		this.label33.Location = new System.Drawing.Point(324, 27);
		this.label33.Name = "label33";
		this.label33.Size = new System.Drawing.Size(49, 13);
		this.label33.TabIndex = 30;
		this.label33.Text = "Packing:";
		this.textBoxNumCis.Location = new System.Drawing.Point(127, 74);
		this.textBoxNumCis.Name = "textBoxNumCis";
		this.textBoxNumCis.Size = new System.Drawing.Size(59, 20);
		this.textBoxNumCis.TabIndex = 0;
		this.label28.AutoSize = true;
		this.label28.Location = new System.Drawing.Point(42, 77);
		this.label28.Name = "label28";
		this.label28.Size = new System.Drawing.Size(79, 13);
		this.label28.TabIndex = 17;
		this.label28.Text = "Number of CIS:";
		this.groupBox19.Controls.Add(this.checkBoxCodPhySM);
		this.groupBox19.Controls.Add(this.checkBoxPhy2MSM);
		this.groupBox19.Controls.Add(this.checkBoxPhy1MSM);
		this.groupBox19.Location = new System.Drawing.Point(315, 14);
		this.groupBox19.Name = "groupBox19";
		this.groupBox19.Size = new System.Drawing.Size(112, 87);
		this.groupBox19.TabIndex = 26;
		this.groupBox19.TabStop = false;
		this.groupBox19.Text = "Physical Type";
		this.checkBoxCodPhySM.AutoSize = true;
		this.checkBoxCodPhySM.Location = new System.Drawing.Point(6, 59);
		this.checkBoxCodPhySM.Name = "checkBoxCodPhySM";
		this.checkBoxCodPhySM.Size = new System.Drawing.Size(98, 17);
		this.checkBoxCodPhySM.TabIndex = 13;
		this.checkBoxCodPhySM.Text = "LE Coded PHY";
		this.checkBoxCodPhySM.UseVisualStyleBackColor = true;
		this.checkBoxPhy2MSM.AutoSize = true;
		this.checkBoxPhy2MSM.Location = new System.Drawing.Point(6, 38);
		this.checkBoxPhy2MSM.Name = "checkBoxPhy2MSM";
		this.checkBoxPhy2MSM.Size = new System.Drawing.Size(82, 17);
		this.checkBoxPhy2MSM.TabIndex = 12;
		this.checkBoxPhy2MSM.Text = "LE PHY 2M";
		this.checkBoxPhy2MSM.UseVisualStyleBackColor = true;
		this.checkBoxPhy1MSM.AutoSize = true;
		this.checkBoxPhy1MSM.Location = new System.Drawing.Point(6, 19);
		this.checkBoxPhy1MSM.Name = "checkBoxPhy1MSM";
		this.checkBoxPhy1MSM.Size = new System.Drawing.Size(82, 17);
		this.checkBoxPhy1MSM.TabIndex = 11;
		this.checkBoxPhy1MSM.Text = "LE PHY 1M";
		this.checkBoxPhy1MSM.UseVisualStyleBackColor = true;
		this.groupBox18.Controls.Add(this.checkBoxCodPhyMS);
		this.groupBox18.Controls.Add(this.checkBoxPhy2MMS);
		this.groupBox18.Controls.Add(this.checkBoxPhy1MMS);
		this.groupBox18.Location = new System.Drawing.Point(315, 12);
		this.groupBox18.Name = "groupBox18";
		this.groupBox18.Size = new System.Drawing.Size(112, 75);
		this.groupBox18.TabIndex = 25;
		this.groupBox18.TabStop = false;
		this.groupBox18.Text = "Physical Type";
		this.checkBoxCodPhyMS.AutoSize = true;
		this.checkBoxCodPhyMS.Location = new System.Drawing.Point(13, 58);
		this.checkBoxCodPhyMS.Name = "checkBoxCodPhyMS";
		this.checkBoxCodPhyMS.Size = new System.Drawing.Size(98, 17);
		this.checkBoxCodPhyMS.TabIndex = 10;
		this.checkBoxCodPhyMS.Text = "LE Coded PHY";
		this.checkBoxCodPhyMS.UseVisualStyleBackColor = true;
		this.checkBoxPhy2MMS.AutoSize = true;
		this.checkBoxPhy2MMS.Location = new System.Drawing.Point(13, 37);
		this.checkBoxPhy2MMS.Name = "checkBoxPhy2MMS";
		this.checkBoxPhy2MMS.Size = new System.Drawing.Size(82, 17);
		this.checkBoxPhy2MMS.TabIndex = 9;
		this.checkBoxPhy2MMS.Text = "LE PHY 2M";
		this.checkBoxPhy2MMS.UseVisualStyleBackColor = true;
		this.checkBoxPhy1MMS.AutoSize = true;
		this.checkBoxPhy1MMS.Location = new System.Drawing.Point(13, 17);
		this.checkBoxPhy1MMS.Name = "checkBoxPhy1MMS";
		this.checkBoxPhy1MMS.Size = new System.Drawing.Size(82, 17);
		this.checkBoxPhy1MMS.TabIndex = 8;
		this.checkBoxPhy1MMS.Text = "LE PHY 1M";
		this.checkBoxPhy1MMS.UseVisualStyleBackColor = true;
		this.textBoxBnMS.Location = new System.Drawing.Point(120, 71);
		this.textBoxBnMS.Name = "textBoxBnMS";
		this.textBoxBnMS.Size = new System.Drawing.Size(36, 20);
		this.textBoxBnMS.TabIndex = 14;
		this.textBoxBnSM.Location = new System.Drawing.Point(119, 71);
		this.textBoxBnSM.Name = "textBoxBnSM";
		this.textBoxBnSM.Size = new System.Drawing.Size(36, 20);
		this.textBoxBnSM.TabIndex = 15;
		this.label27.AutoSize = true;
		this.label27.Location = new System.Drawing.Point(79, 27);
		this.label27.Name = "label27";
		this.label27.Size = new System.Drawing.Size(42, 13);
		this.label27.TabIndex = 18;
		this.label27.Text = "CIG ID:";
		this.textBoxFlushTimeSM.Location = new System.Drawing.Point(119, 19);
		this.textBoxFlushTimeSM.Name = "textBoxFlushTimeSM";
		this.textBoxFlushTimeSM.Size = new System.Drawing.Size(36, 20);
		this.textBoxFlushTimeSM.TabIndex = 5;
		this.textBoxFlushTimeMS.Location = new System.Drawing.Point(119, 19);
		this.textBoxFlushTimeMS.Name = "textBoxFlushTimeMS";
		this.textBoxFlushTimeMS.Size = new System.Drawing.Size(36, 20);
		this.textBoxFlushTimeMS.TabIndex = 4;
		this.label38.AutoSize = true;
		this.label38.Location = new System.Drawing.Point(41, 72);
		this.label38.Name = "label38";
		this.label38.Size = new System.Drawing.Size(75, 13);
		this.label38.TabIndex = 29;
		this.label38.Text = "Burst number :";
		this.label37.AutoSize = true;
		this.label37.Location = new System.Drawing.Point(44, 74);
		this.label37.Name = "label37";
		this.label37.Size = new System.Drawing.Size(72, 13);
		this.label37.TabIndex = 28;
		this.label37.Text = "Burst number:";
		this.label36.AutoSize = true;
		this.label36.Location = new System.Drawing.Point(44, 22);
		this.label36.Name = "label36";
		this.label36.Size = new System.Drawing.Size(72, 13);
		this.label36.TabIndex = 22;
		this.label36.Text = "Flush timeout:";
		this.label35.AutoSize = true;
		this.label35.Location = new System.Drawing.Point(44, 22);
		this.label35.Name = "label35";
		this.label35.Size = new System.Drawing.Size(72, 13);
		this.label35.TabIndex = 21;
		this.label35.Text = "Flush timeout:";
		this.label32.AutoSize = true;
		this.label32.Location = new System.Drawing.Point(1, 48);
		this.label32.Name = "label32";
		this.label32.Size = new System.Drawing.Size(115, 13);
		this.label32.TabIndex = 24;
		this.label32.Text = "Maximum payload size:";
		this.textBoxMaxPayloadSM.Location = new System.Drawing.Point(119, 45);
		this.textBoxMaxPayloadSM.Name = "textBoxMaxPayloadSM";
		this.textBoxMaxPayloadSM.Size = new System.Drawing.Size(36, 20);
		this.textBoxMaxPayloadSM.TabIndex = 7;
		this.textBoxMaxPayloadMS.Location = new System.Drawing.Point(119, 45);
		this.textBoxMaxPayloadMS.Name = "textBoxMaxPayloadMS";
		this.textBoxMaxPayloadMS.Size = new System.Drawing.Size(36, 20);
		this.textBoxMaxPayloadMS.TabIndex = 6;
		this.label31.AutoSize = true;
		this.label31.Location = new System.Drawing.Point(1, 48);
		this.label31.Name = "label31";
		this.label31.Size = new System.Drawing.Size(115, 13);
		this.label31.TabIndex = 23;
		this.label31.Text = "Maximum payload size:";
		this.textBoxNumSubevents.Location = new System.Drawing.Point(379, 50);
		this.textBoxNumSubevents.Name = "textBoxNumSubevents";
		this.textBoxNumSubevents.Size = new System.Drawing.Size(59, 20);
		this.textBoxNumSubevents.TabIndex = 3;
		this.label30.AutoSize = true;
		this.label30.Location = new System.Drawing.Point(262, 53);
		this.label30.Name = "label30";
		this.label30.Size = new System.Drawing.Size(111, 13);
		this.label30.TabIndex = 20;
		this.label30.Text = "Number of subevents:";
		this.textBoxIsoInterval.Location = new System.Drawing.Point(127, 50);
		this.textBoxIsoInterval.Name = "textBoxIsoInterval";
		this.textBoxIsoInterval.Size = new System.Drawing.Size(59, 20);
		this.textBoxIsoInterval.TabIndex = 2;
		this.label29.AutoSize = true;
		this.label29.Location = new System.Drawing.Point(21, 53);
		this.label29.Name = "label29";
		this.label29.Size = new System.Drawing.Size(100, 13);
		this.label29.TabIndex = 19;
		this.label29.Text = "ISO Interval (msec):";
		this.textBoxCigId.Location = new System.Drawing.Point(127, 24);
		this.textBoxCigId.Name = "textBoxCigId";
		this.textBoxCigId.Size = new System.Drawing.Size(59, 20);
		this.textBoxCigId.TabIndex = 1;
		this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
		this.okButton.Dock = System.Windows.Forms.DockStyle.Fill;
		this.okButton.Location = new System.Drawing.Point(0, 0);
		this.okButton.Name = "okButton";
		this.okButton.Size = new System.Drawing.Size(316, 68);
		this.okButton.TabIndex = 2;
		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.Dock = System.Windows.Forms.DockStyle.Fill;
		this.cancelButton.Location = new System.Drawing.Point(0, 0);
		this.cancelButton.Name = "cancelButton";
		this.cancelButton.Size = new System.Drawing.Size(131, 68);
		this.cancelButton.TabIndex = 3;
		this.cancelButton.Text = "Cancel";
		this.cancelButton.UseVisualStyleBackColor = true;
		this.cancelButton.Click += new System.EventHandler(cancelButton_Click);
		this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
		this.splitContainer1.IsSplitterFixed = true;
		this.splitContainer1.Location = new System.Drawing.Point(0, 0);
		this.splitContainer1.Name = "splitContainer1";
		this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
		this.splitContainer1.Panel1.Controls.Add(this.localHostULPOptionTabControl);
		this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
		this.splitContainer1.Size = new System.Drawing.Size(451, 483);
		this.splitContainer1.SplitterDistance = 411;
		this.splitContainer1.TabIndex = 4;
		this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
		this.splitContainer2.IsSplitterFixed = true;
		this.splitContainer2.Location = new System.Drawing.Point(0, 0);
		this.splitContainer2.Name = "splitContainer2";
		this.splitContainer2.Panel1.Controls.Add(this.okButton);
		this.splitContainer2.Panel2.Controls.Add(this.cancelButton);
		this.splitContainer2.Size = new System.Drawing.Size(451, 68);
		this.splitContainer2.SplitterDistance = 316;
		this.splitContainer2.TabIndex = 0;
		this.groupBox20.Controls.Add(this.textBoxMaxSDUSizeMS);
		this.groupBox20.Controls.Add(this.label41);
		this.groupBox20.Controls.Add(this.textBoxSduIntervalMS);
		this.groupBox20.Controls.Add(this.label40);
		this.groupBox20.Controls.Add(this.textBoxFlushTimeMS);
		this.groupBox20.Controls.Add(this.label35);
		this.groupBox20.Controls.Add(this.textBoxMaxPayloadMS);
		this.groupBox20.Controls.Add(this.label31);
		this.groupBox20.Controls.Add(this.groupBox18);
		this.groupBox20.Controls.Add(this.textBoxBnMS);
		this.groupBox20.Controls.Add(this.label37);
		this.groupBox20.Location = new System.Drawing.Point(5, 101);
		this.groupBox20.Name = "groupBox20";
		this.groupBox20.Size = new System.Drawing.Size(435, 100);
		this.groupBox20.TabIndex = 34;
		this.groupBox20.TabStop = false;
		this.groupBox20.Text = "Master to Slave";
		this.groupBox21.Controls.Add(this.textBoxMaxSDUSizeSM);
		this.groupBox21.Controls.Add(this.label42);
		this.groupBox21.Controls.Add(this.textBoxSduIntervalSM);
		this.groupBox21.Controls.Add(this.label39);
		this.groupBox21.Controls.Add(this.textBoxFlushTimeSM);
		this.groupBox21.Controls.Add(this.label36);
		this.groupBox21.Controls.Add(this.textBoxBnSM);
		this.groupBox21.Controls.Add(this.label38);
		this.groupBox21.Controls.Add(this.textBoxMaxPayloadSM);
		this.groupBox21.Controls.Add(this.label32);
		this.groupBox21.Controls.Add(this.groupBox19);
		this.groupBox21.Location = new System.Drawing.Point(5, 217);
		this.groupBox21.Name = "groupBox21";
		this.groupBox21.Size = new System.Drawing.Size(433, 108);
		this.groupBox21.TabIndex = 35;
		this.groupBox21.TabStop = false;
		this.groupBox21.Text = "Slave to Master";
		this.label39.AutoSize = true;
		this.label39.Location = new System.Drawing.Point(164, 22);
		this.label39.Name = "label39";
		this.label39.Size = new System.Drawing.Size(90, 13);
		this.label39.TabIndex = 30;
		this.label39.Text = "SDU interval (us):";
		this.textBoxSduIntervalSM.Location = new System.Drawing.Point(257, 19);
		this.textBoxSduIntervalSM.Name = "textBoxSduIntervalSM";
		this.textBoxSduIntervalSM.Size = new System.Drawing.Size(52, 20);
		this.textBoxSduIntervalSM.TabIndex = 31;
		this.label40.AutoSize = true;
		this.label40.Location = new System.Drawing.Point(164, 22);
		this.label40.Name = "label40";
		this.label40.Size = new System.Drawing.Size(90, 13);
		this.label40.TabIndex = 29;
		this.label40.Text = "SDU interval (us):";
		this.textBoxSduIntervalMS.Location = new System.Drawing.Point(257, 19);
		this.textBoxSduIntervalMS.Name = "textBoxSduIntervalMS";
		this.textBoxSduIntervalMS.Size = new System.Drawing.Size(52, 20);
		this.textBoxSduIntervalMS.TabIndex = 30;
		this.checkBoxFraming.AutoSize = true;
		this.checkBoxFraming.Location = new System.Drawing.Point(206, 26);
		this.checkBoxFraming.Name = "checkBoxFraming";
		this.checkBoxFraming.Size = new System.Drawing.Size(99, 17);
		this.checkBoxFraming.TabIndex = 36;
		this.checkBoxFraming.Text = "Enable Framing";
		this.checkBoxFraming.UseVisualStyleBackColor = true;
		this.label41.AutoSize = true;
		this.label41.Location = new System.Drawing.Point(174, 48);
		this.label41.Name = "label41";
		this.label41.Size = new System.Drawing.Size(77, 13);
		this.label41.TabIndex = 31;
		this.label41.Text = "Max SDU size:";
		this.label42.AutoSize = true;
		this.label42.Location = new System.Drawing.Point(174, 48);
		this.label42.Name = "label42";
		this.label42.Size = new System.Drawing.Size(77, 13);
		this.label42.TabIndex = 32;
		this.label42.Text = "Max SDU size:";
		this.textBoxMaxSDUSizeSM.Location = new System.Drawing.Point(257, 45);
		this.textBoxMaxSDUSizeSM.Name = "textBoxMaxSDUSizeSM";
		this.textBoxMaxSDUSizeSM.Size = new System.Drawing.Size(52, 20);
		this.textBoxMaxSDUSizeSM.TabIndex = 33;
		this.textBoxMaxSDUSizeMS.Location = new System.Drawing.Point(257, 45);
		this.textBoxMaxSDUSizeMS.Name = "textBoxMaxSDUSizeMS";
		this.textBoxMaxSDUSizeMS.Size = new System.Drawing.Size(52, 20);
		this.textBoxMaxSDUSizeMS.TabIndex = 32;
		base.AcceptButton = this.okButton;
		base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(451, 483);
		base.Controls.Add(this.splitContainer1);
		base.MaximizeBox = false;
		base.MinimizeBox = false;
		base.Name = "LocalHostULPOption";
		base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
		this.Text = "Local Host LE Options";
		base.Load += new System.EventHandler(LocalHostULPOption_Load);
		this.localHostULPOptionTabControl.ResumeLayout(false);
		this.advertisingTabPage.ResumeLayout(false);
		this.groupBox3.ResumeLayout(false);
		this.groupBox3.PerformLayout();
		this.groupBox2.ResumeLayout(false);
		this.groupBox2.PerformLayout();
		this.groupBox1.ResumeLayout(false);
		this.groupBox1.PerformLayout();
		this.groupBox13.ResumeLayout(false);
		this.groupBox12.ResumeLayout(false);
		this.groupBox12.PerformLayout();
		this.scanningTabPage.ResumeLayout(false);
		this.groupBox7.ResumeLayout(false);
		this.groupBox7.PerformLayout();
		this.groupBox5.ResumeLayout(false);
		this.groupBox5.PerformLayout();
		this.groupBox4.ResumeLayout(false);
		this.groupBox4.PerformLayout();
		this.createLLConnectionTabPage.ResumeLayout(false);
		this.groupBox11.ResumeLayout(false);
		this.groupBox11.PerformLayout();
		this.groupBox10.ResumeLayout(false);
		this.groupBox10.PerformLayout();
		this.groupBox9.ResumeLayout(false);
		this.groupBox9.PerformLayout();
		this.groupBox8.ResumeLayout(false);
		this.groupBox8.PerformLayout();
		this.groupBox6.ResumeLayout(false);
		this.groupBox6.PerformLayout();
		this.tabPageEncryption.ResumeLayout(false);
		this.groupBox15.ResumeLayout(false);
		this.groupBox15.PerformLayout();
		this.groupBox14.ResumeLayout(false);
		this.groupBox14.PerformLayout();
		this.tabPageIsoOptions.ResumeLayout(false);
		this.groupBox17.ResumeLayout(false);
		this.groupBox17.PerformLayout();
		this.groupBox16.ResumeLayout(false);
		this.groupBox16.PerformLayout();
		this.groupBox19.ResumeLayout(false);
		this.groupBox19.PerformLayout();
		this.groupBox18.ResumeLayout(false);
		this.groupBox18.PerformLayout();
		this.splitContainer1.Panel1.ResumeLayout(false);
		this.splitContainer1.Panel2.ResumeLayout(false);
		((System.ComponentModel.ISupportInitialize)this.splitContainer1).EndInit();
		this.splitContainer1.ResumeLayout(false);
		this.splitContainer2.Panel1.ResumeLayout(false);
		this.splitContainer2.Panel2.ResumeLayout(false);
		((System.ComponentModel.ISupportInitialize)this.splitContainer2).EndInit();
		this.splitContainer2.ResumeLayout(false);
		this.groupBox20.ResumeLayout(false);
		this.groupBox20.PerformLayout();
		this.groupBox21.ResumeLayout(false);
		this.groupBox21.PerformLayout();
		base.ResumeLayout(false);
	}
}
