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

namespace QCRPG.TSL.BT;

public class RemoteDeviceOptions : Form
{
	private string DeviceAddress = "";

	private PageScanRepetitionModeEnum PageScanRepetitionMode = PageScanRepetitionModeEnum.R1;

	private uint ClassOfDevice;

	private ushort ClockOffset;

	private bool DM1enable = true;

	private bool DM3enable = true;

	private bool DM5enable = true;

	private bool DH1enable = true;

	private bool DH3enable = true;

	private bool DH5enable = true;

	private bool AllowRoleSwitch = true;

	private bool LMPerformMSswitch;

	private bool HV1enable = true;

	private bool HV2enable = true;

	private bool HV3enable = true;

	private bool ClockOffsetValid = true;

	private int LevelChoice;

	private int LinkKeyChoice = 1;

	private string LinkKey = "0102030405060708090A0B0C0D0E0F10";

	private int PinCodeChoice = 1;

	private string PinCode = "0102030405060708090A0B0C0D0E0F10";

	private IoCapabilityEnum IOCapability;

	private bool OutOfBandDataPresent;

	private bool ConfirmationRequestReply = true;

	private bool PasskeyRequestReply = true;

	private bool AuthenticationRequirements = true;

	private string OOBC = "00000000000000000000000000000000";

	private string OOBR = "00000000000000000000000000000000";

	private IContainer components;

	private TabControl remoteDeviceOptionTabControl;

	private TabPage remoteDeviceAttributeTabPage;

	private TabPage securityTabPage;

	private GroupBox groupBox2;

	private CheckBox HV3EnableCheckBox;

	private CheckBox HV2EnableCheckBox;

	private CheckBox HV1EnableCheckBox;

	private CheckBox clockOffsetValidCheckBox;

	private CheckBox allowRoleSwitchCheckBox;

	private CheckBox lmPerformMasterSlaveSwitchCheckBox;

	private CheckBox DH5EnableCheckBox;

	private CheckBox DH3EnableCheckBox;

	private CheckBox DH1EnableCheckBox;

	private CheckBox DM5EnableCheckBox;

	private CheckBox DM3EnableCheckBox;

	private CheckBox DM1EnableCheckBox;

	private GroupBox groupBox1;

	private Label label6;

	private Label label5;

	private ComboBox pageScanRepModeComboBox;

	private Label label2;

	private TextBox remoteDeviceAddressTextBox;

	private Label label1;

	private TabPage simplePairingTabPage;

	private TabPage outOfBandTabPage;

	private GroupBox groupBox3;

	private RadioButton pairingRadioButton;

	private RadioButton authenticationRadioButton;

	private RadioButton defaultRadioButton;

	private GroupBox groupBox4;

	private TextBox pinCodeTextBox;

	private RadioButton pinCodeHexRadioButton;

	private RadioButton pinCodeAsciiRadioButton;

	private GroupBox groupBox5;

	private TextBox linkKeyTextBox;

	private RadioButton linkKeyHexRadioButton;

	private RadioButton linkKeyAsciiRadioButton;

	private GroupBox groupBox15;

	private GroupBox groupBox17;

	private RadioButton outofBandYesRadioButton;

	private RadioButton outofBandNoRadioButton;

	private GroupBox groupBox14;

	private RadioButton noInOutRadioButton;

	private RadioButton keyboardOnlyRadioButton;

	private RadioButton displayYesNoRadioButton;

	private RadioButton displayOnlyRadioButton;

	private GroupBox groupBox20;

	private TextBox oobRTextBox;

	private GroupBox groupBox19;

	private TextBox oobCTextBox;

	private GroupBox groupBox18;

	private RadioButton confirmationNegativeRadioButton;

	private RadioButton confirmationPositiveRadioButton;

	private GroupBox groupBox16;

	private RadioButton passkeyNegativeRadioButton;

	private RadioButton passkeyPositiveRadioButton;

	private RadioButton mitmProtectionRequiredRadioButton;

	private RadioButton mitmProtectionNotRequiredRadioButton;

	private Label clockOffsetLabel;

	private Label classOfDeviceLabel;

	private Button cancelButton;

	private Button okButton;

	public string deviceAddress
	{
		get
		{
			return DeviceAddress;
		}
		set
		{
			DeviceAddress = value;
			remoteDeviceAddressTextBox.Enabled = false;
		}
	}

	public PageScanRepetitionModeEnum pageScanRepetitionMode
	{
		get
		{
			return PageScanRepetitionMode;
		}
		set
		{
			PageScanRepetitionMode = value;
		}
	}

	public uint classOfDevice
	{
		set
		{
			ClassOfDevice = value;
		}
	}

	public ushort clockOffset
	{
		set
		{
			ClockOffset = value;
		}
	}

	public bool dm1enable
	{
		get
		{
			return DM1enable;
		}
		set
		{
			DM1enable = value;
		}
	}

	public bool dm3enable
	{
		get
		{
			return DM3enable;
		}
		set
		{
			DM3enable = value;
		}
	}

	public bool dm5enable
	{
		get
		{
			return DM5enable;
		}
		set
		{
			DM5enable = value;
		}
	}

	public bool dh1enable
	{
		get
		{
			return DH1enable;
		}
		set
		{
			DH1enable = value;
		}
	}

	public bool dh3enable
	{
		get
		{
			return DH3enable;
		}
		set
		{
			DH3enable = value;
		}
	}

	public bool dh5enable
	{
		get
		{
			return DH5enable;
		}
		set
		{
			DH5enable = value;
		}
	}

	public bool allowRoleSwitch
	{
		get
		{
			return AllowRoleSwitch;
		}
		set
		{
			AllowRoleSwitch = value;
		}
	}

	public bool lmPerformMSswitch
	{
		get
		{
			return LMPerformMSswitch;
		}
		set
		{
			LMPerformMSswitch = value;
		}
	}

	public bool hv1enable
	{
		get
		{
			return HV1enable;
		}
		set
		{
			HV1enable = value;
		}
	}

	public bool hv2enable
	{
		get
		{
			return HV2enable;
		}
		set
		{
			HV2enable = value;
		}
	}

	public bool hv3enable
	{
		get
		{
			return HV3enable;
		}
		set
		{
			HV3enable = value;
		}
	}

	public bool clockOffsetValid
	{
		get
		{
			return ClockOffsetValid;
		}
		set
		{
			ClockOffsetValid = true;
		}
	}

	public int levelChoice
	{
		get
		{
			return LevelChoice;
		}
		set
		{
			LevelChoice = value;
		}
	}

	public int linkKeyChoice
	{
		get
		{
			return LinkKeyChoice;
		}
		set
		{
			LinkKeyChoice = value;
		}
	}

	public string linkKey
	{
		get
		{
			return LinkKey;
		}
		set
		{
			LinkKey = value;
		}
	}

	public int pinCodeChoice
	{
		get
		{
			return PinCodeChoice;
		}
		set
		{
			PinCodeChoice = value;
		}
	}

	public string pinCode
	{
		get
		{
			return PinCode;
		}
		set
		{
			PinCode = value;
		}
	}

	public IoCapabilityEnum ioCapability
	{
		get
		{
			return IOCapability;
		}
		set
		{
			IOCapability = value;
		}
	}

	public bool outOfBandDataPresent
	{
		get
		{
			return OutOfBandDataPresent;
		}
		set
		{
			OutOfBandDataPresent = value;
		}
	}

	public bool confirmationRequestReply
	{
		get
		{
			return ConfirmationRequestReply;
		}
		set
		{
			ConfirmationRequestReply = value;
		}
	}

	public bool passkeyRequestReply
	{
		get
		{
			return PasskeyRequestReply;
		}
		set
		{
			PasskeyRequestReply = value;
		}
	}

	public bool authenticationRequirements
	{
		get
		{
			return AuthenticationRequirements;
		}
		set
		{
			AuthenticationRequirements = value;
		}
	}

	public string oobc
	{
		get
		{
			return OOBC;
		}
		set
		{
			OOBC = value;
		}
	}

	public string oobr
	{
		get
		{
			return OOBR;
		}
		set
		{
			OOBR = value;
		}
	}

	public RemoteDeviceOptions()
	{
		InitializeComponent();
	}

	private void RemoteDeviceOptions_Load(object sender, EventArgs e)
	{
		remoteDeviceAddressTextBox.Text = DeviceAddress;
		pageScanRepModeComboBox.DataSource = Enum.GetValues(typeof(PageScanRepetitionModeEnum));
		pageScanRepModeComboBox.SelectedIndex = (int)PageScanRepetitionMode;
		classOfDeviceLabel.Text = $"0x{ClassOfDevice:X6}";
		clockOffsetLabel.Text = $"0x{ClockOffset:X4}";
		DM1EnableCheckBox.Checked = DM1enable;
		DM3EnableCheckBox.Checked = DM3enable;
		DM5EnableCheckBox.Checked = DM5enable;
		DH1EnableCheckBox.Checked = DH1enable;
		DH3EnableCheckBox.Checked = DH3enable;
		DH5EnableCheckBox.Checked = DH5enable;
		allowRoleSwitchCheckBox.Checked = AllowRoleSwitch;
		lmPerformMasterSlaveSwitchCheckBox.Checked = LMPerformMSswitch;
		HV1EnableCheckBox.Checked = HV1enable;
		HV2EnableCheckBox.Checked = HV2enable;
		HV3EnableCheckBox.Checked = HV3enable;
		clockOffsetValidCheckBox.Checked = ClockOffsetValid;
		switch (LevelChoice)
		{
		default:
			defaultRadioButton.Checked = true;
			break;
		case 1:
			authenticationRadioButton.Checked = true;
			break;
		case 2:
			pairingRadioButton.Checked = true;
			break;
		}
		switch (LinkKeyChoice)
		{
		case 0:
			linkKeyAsciiRadioButton.Checked = true;
			break;
		default:
			linkKeyHexRadioButton.Checked = true;
			break;
		}
		linkKeyTextBox.Text = LinkKey;
		switch (PinCodeChoice)
		{
		case 0:
			pinCodeAsciiRadioButton.Checked = true;
			break;
		default:
			pinCodeHexRadioButton.Checked = true;
			break;
		}
		pinCodeTextBox.Text = PinCode;
		switch (IOCapability)
		{
		case IoCapabilityEnum.DisplayOnly:
			displayOnlyRadioButton.Checked = true;
			break;
		case IoCapabilityEnum.DisplayYesNo:
			displayYesNoRadioButton.Checked = true;
			break;
		case IoCapabilityEnum.KeyboardOnly:
			keyboardOnlyRadioButton.Checked = true;
			break;
		case IoCapabilityEnum.NoInputNoOutput:
			noInOutRadioButton.Checked = true;
			break;
		}
		if (OutOfBandDataPresent)
		{
			outofBandYesRadioButton.Checked = true;
		}
		else
		{
			outofBandNoRadioButton.Checked = true;
		}
		if (ConfirmationRequestReply)
		{
			confirmationPositiveRadioButton.Checked = true;
		}
		else
		{
			confirmationNegativeRadioButton.Checked = true;
		}
		if (PasskeyRequestReply)
		{
			passkeyPositiveRadioButton.Checked = true;
		}
		else
		{
			passkeyNegativeRadioButton.Checked = true;
		}
		if (AuthenticationRequirements)
		{
			mitmProtectionRequiredRadioButton.Checked = true;
		}
		else
		{
			mitmProtectionNotRequiredRadioButton.Checked = true;
		}
		oobCTextBox.Text = OOBC;
		oobRTextBox.Text = OOBR;
	}

	private void linkKeyAsciiRadioButton_CheckedChanged(object sender, EventArgs e)
	{
		if (!linkKeyAsciiRadioButton.Checked)
		{
			return;
		}
		string hexString = ((linkKeyTextBox.Text.Length % 2 == 0) ? linkKeyTextBox.Text : linkKeyTextBox.Text.PadLeft(linkKeyTextBox.Text.Length + 1, '0')).ToUpper();
		IEnumerable<string> source = from i in Enumerable.Range(0, hexString.Length / 2)
			select hexString.Substring(2 * i, 2);
		linkKeyTextBox.Text = string.Join("", source.Select((string s) => (char)((!s.All((char c) => (c >= '0' && c <= '9') || (c >= 'A' && c <= 'F'))) ? 32 : Convert.ToByte(s, 16))));
	}

	private void linkKeyHexRadioButton_CheckedChanged(object sender, EventArgs e)
	{
		if (linkKeyHexRadioButton.Checked)
		{
			linkKeyTextBox.Text = string.Join("", from b in linkKeyTextBox.Text.Select(Convert.ToByte)
				select b.ToString("X2"));
		}
	}

	private void pinCodeAsciiRadioButton_CheckedChanged(object sender, EventArgs e)
	{
		if (!pinCodeAsciiRadioButton.Checked)
		{
			return;
		}
		string hexString = ((pinCodeTextBox.Text.Length % 2 == 0) ? pinCodeTextBox.Text : pinCodeTextBox.Text.PadLeft(pinCodeTextBox.Text.Length + 1, '0')).ToUpper();
		IEnumerable<string> source = from i in Enumerable.Range(0, hexString.Length / 2)
			select hexString.Substring(2 * i, 2);
		pinCodeTextBox.Text = string.Join("", source.Select((string s) => (char)((!s.All((char c) => (c >= '0' && c <= '9') || (c >= 'A' && c <= 'F'))) ? 32 : Convert.ToByte(s, 16))));
	}

	private void pinCodeHexRadioButton_CheckedChanged(object sender, EventArgs e)
	{
		if (pinCodeHexRadioButton.Checked)
		{
			pinCodeTextBox.Text = string.Join("", from b in pinCodeTextBox.Text.Select(Convert.ToByte)
				select b.ToString("X2"));
		}
	}

	private void okButton_Click(object sender, EventArgs e)
	{
		DeviceAddress = remoteDeviceAddressTextBox.Text;
		PageScanRepetitionMode = (PageScanRepetitionModeEnum)pageScanRepModeComboBox.SelectedIndex;
		DM1enable = DM1EnableCheckBox.Checked;
		DM3enable = DM3EnableCheckBox.Checked;
		DM5enable = DM5EnableCheckBox.Checked;
		DH1enable = DH1EnableCheckBox.Checked;
		DH3enable = DH3EnableCheckBox.Checked;
		DH5enable = DH5EnableCheckBox.Checked;
		AllowRoleSwitch = allowRoleSwitchCheckBox.Checked;
		LMPerformMSswitch = lmPerformMasterSlaveSwitchCheckBox.Checked;
		HV1enable = HV1EnableCheckBox.Checked;
		HV2enable = HV2EnableCheckBox.Checked;
		HV3enable = HV3EnableCheckBox.Checked;
		ClockOffsetValid = clockOffsetValidCheckBox.Checked;
		LevelChoice = ((!defaultRadioButton.Checked) ? (authenticationRadioButton.Checked ? 1 : (pairingRadioButton.Checked ? 2 : 0)) : 0);
		LinkKeyChoice = ((!linkKeyAsciiRadioButton.Checked) ? (linkKeyHexRadioButton.Checked ? 1 : 1) : 0);
		LinkKey = linkKeyTextBox.Text;
		PinCodeChoice = ((!pinCodeAsciiRadioButton.Checked) ? (pinCodeHexRadioButton.Checked ? 1 : 1) : 0);
		PinCode = pinCodeTextBox.Text;
		IOCapability = (noInOutRadioButton.Checked ? IoCapabilityEnum.NoInputNoOutput : (keyboardOnlyRadioButton.Checked ? IoCapabilityEnum.KeyboardOnly : (displayYesNoRadioButton.Checked ? IoCapabilityEnum.DisplayYesNo : IoCapabilityEnum.DisplayOnly)));
		OutOfBandDataPresent = outofBandYesRadioButton.Checked || (outofBandNoRadioButton.Checked && false);
		ConfirmationRequestReply = !confirmationNegativeRadioButton.Checked && (confirmationPositiveRadioButton.Checked || true);
		PasskeyRequestReply = !passkeyNegativeRadioButton.Checked && (passkeyPositiveRadioButton.Checked || true);
		AuthenticationRequirements = !mitmProtectionNotRequiredRadioButton.Checked && (mitmProtectionRequiredRadioButton.Checked || true);
		OOBC = oobCTextBox.Text;
		OOBR = oobRTextBox.Text;
	}

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

	private void InitializeComponent()
	{
		this.remoteDeviceOptionTabControl = new System.Windows.Forms.TabControl();
		this.remoteDeviceAttributeTabPage = new System.Windows.Forms.TabPage();
		this.groupBox2 = new System.Windows.Forms.GroupBox();
		this.HV3EnableCheckBox = new System.Windows.Forms.CheckBox();
		this.HV2EnableCheckBox = new System.Windows.Forms.CheckBox();
		this.HV1EnableCheckBox = new System.Windows.Forms.CheckBox();
		this.clockOffsetValidCheckBox = new System.Windows.Forms.CheckBox();
		this.allowRoleSwitchCheckBox = new System.Windows.Forms.CheckBox();
		this.lmPerformMasterSlaveSwitchCheckBox = new System.Windows.Forms.CheckBox();
		this.DH5EnableCheckBox = new System.Windows.Forms.CheckBox();
		this.DH3EnableCheckBox = new System.Windows.Forms.CheckBox();
		this.DH1EnableCheckBox = new System.Windows.Forms.CheckBox();
		this.DM5EnableCheckBox = new System.Windows.Forms.CheckBox();
		this.DM3EnableCheckBox = new System.Windows.Forms.CheckBox();
		this.DM1EnableCheckBox = new System.Windows.Forms.CheckBox();
		this.groupBox1 = new System.Windows.Forms.GroupBox();
		this.clockOffsetLabel = new System.Windows.Forms.Label();
		this.classOfDeviceLabel = new System.Windows.Forms.Label();
		this.label6 = new System.Windows.Forms.Label();
		this.label5 = new System.Windows.Forms.Label();
		this.pageScanRepModeComboBox = new System.Windows.Forms.ComboBox();
		this.label2 = new System.Windows.Forms.Label();
		this.remoteDeviceAddressTextBox = new System.Windows.Forms.TextBox();
		this.label1 = new System.Windows.Forms.Label();
		this.securityTabPage = new System.Windows.Forms.TabPage();
		this.groupBox3 = new System.Windows.Forms.GroupBox();
		this.pairingRadioButton = new System.Windows.Forms.RadioButton();
		this.authenticationRadioButton = new System.Windows.Forms.RadioButton();
		this.defaultRadioButton = new System.Windows.Forms.RadioButton();
		this.groupBox4 = new System.Windows.Forms.GroupBox();
		this.pinCodeTextBox = new System.Windows.Forms.TextBox();
		this.pinCodeHexRadioButton = new System.Windows.Forms.RadioButton();
		this.pinCodeAsciiRadioButton = new System.Windows.Forms.RadioButton();
		this.groupBox5 = new System.Windows.Forms.GroupBox();
		this.linkKeyTextBox = new System.Windows.Forms.TextBox();
		this.linkKeyHexRadioButton = new System.Windows.Forms.RadioButton();
		this.linkKeyAsciiRadioButton = new System.Windows.Forms.RadioButton();
		this.simplePairingTabPage = new System.Windows.Forms.TabPage();
		this.groupBox16 = new System.Windows.Forms.GroupBox();
		this.passkeyNegativeRadioButton = new System.Windows.Forms.RadioButton();
		this.passkeyPositiveRadioButton = new System.Windows.Forms.RadioButton();
		this.groupBox18 = new System.Windows.Forms.GroupBox();
		this.confirmationNegativeRadioButton = new System.Windows.Forms.RadioButton();
		this.confirmationPositiveRadioButton = new System.Windows.Forms.RadioButton();
		this.groupBox15 = new System.Windows.Forms.GroupBox();
		this.mitmProtectionRequiredRadioButton = new System.Windows.Forms.RadioButton();
		this.mitmProtectionNotRequiredRadioButton = new System.Windows.Forms.RadioButton();
		this.groupBox17 = new System.Windows.Forms.GroupBox();
		this.outofBandYesRadioButton = new System.Windows.Forms.RadioButton();
		this.outofBandNoRadioButton = new System.Windows.Forms.RadioButton();
		this.groupBox14 = new System.Windows.Forms.GroupBox();
		this.noInOutRadioButton = new System.Windows.Forms.RadioButton();
		this.keyboardOnlyRadioButton = new System.Windows.Forms.RadioButton();
		this.displayYesNoRadioButton = new System.Windows.Forms.RadioButton();
		this.displayOnlyRadioButton = new System.Windows.Forms.RadioButton();
		this.outOfBandTabPage = new System.Windows.Forms.TabPage();
		this.groupBox20 = new System.Windows.Forms.GroupBox();
		this.oobRTextBox = new System.Windows.Forms.TextBox();
		this.groupBox19 = new System.Windows.Forms.GroupBox();
		this.oobCTextBox = new System.Windows.Forms.TextBox();
		this.cancelButton = new System.Windows.Forms.Button();
		this.okButton = new System.Windows.Forms.Button();
		this.remoteDeviceOptionTabControl.SuspendLayout();
		this.remoteDeviceAttributeTabPage.SuspendLayout();
		this.groupBox2.SuspendLayout();
		this.groupBox1.SuspendLayout();
		this.securityTabPage.SuspendLayout();
		this.groupBox3.SuspendLayout();
		this.groupBox4.SuspendLayout();
		this.groupBox5.SuspendLayout();
		this.simplePairingTabPage.SuspendLayout();
		this.groupBox16.SuspendLayout();
		this.groupBox18.SuspendLayout();
		this.groupBox15.SuspendLayout();
		this.groupBox17.SuspendLayout();
		this.groupBox14.SuspendLayout();
		this.outOfBandTabPage.SuspendLayout();
		this.groupBox20.SuspendLayout();
		this.groupBox19.SuspendLayout();
		base.SuspendLayout();
		this.remoteDeviceOptionTabControl.Controls.Add(this.remoteDeviceAttributeTabPage);
		this.remoteDeviceOptionTabControl.Controls.Add(this.securityTabPage);
		this.remoteDeviceOptionTabControl.Controls.Add(this.simplePairingTabPage);
		this.remoteDeviceOptionTabControl.Controls.Add(this.outOfBandTabPage);
		this.remoteDeviceOptionTabControl.Location = new System.Drawing.Point(13, 13);
		this.remoteDeviceOptionTabControl.Name = "remoteDeviceOptionTabControl";
		this.remoteDeviceOptionTabControl.SelectedIndex = 0;
		this.remoteDeviceOptionTabControl.Size = new System.Drawing.Size(375, 336);
		this.remoteDeviceOptionTabControl.TabIndex = 0;
		this.remoteDeviceAttributeTabPage.Controls.Add(this.groupBox2);
		this.remoteDeviceAttributeTabPage.Controls.Add(this.groupBox1);
		this.remoteDeviceAttributeTabPage.Location = new System.Drawing.Point(4, 22);
		this.remoteDeviceAttributeTabPage.Name = "remoteDeviceAttributeTabPage";
		this.remoteDeviceAttributeTabPage.Padding = new System.Windows.Forms.Padding(3);
		this.remoteDeviceAttributeTabPage.Size = new System.Drawing.Size(367, 310);
		this.remoteDeviceAttributeTabPage.TabIndex = 0;
		this.remoteDeviceAttributeTabPage.Text = "Remote Device Attribute";
		this.remoteDeviceAttributeTabPage.UseVisualStyleBackColor = true;
		this.groupBox2.Controls.Add(this.HV3EnableCheckBox);
		this.groupBox2.Controls.Add(this.HV2EnableCheckBox);
		this.groupBox2.Controls.Add(this.HV1EnableCheckBox);
		this.groupBox2.Controls.Add(this.clockOffsetValidCheckBox);
		this.groupBox2.Controls.Add(this.allowRoleSwitchCheckBox);
		this.groupBox2.Controls.Add(this.lmPerformMasterSlaveSwitchCheckBox);
		this.groupBox2.Controls.Add(this.DH5EnableCheckBox);
		this.groupBox2.Controls.Add(this.DH3EnableCheckBox);
		this.groupBox2.Controls.Add(this.DH1EnableCheckBox);
		this.groupBox2.Controls.Add(this.DM5EnableCheckBox);
		this.groupBox2.Controls.Add(this.DM3EnableCheckBox);
		this.groupBox2.Controls.Add(this.DM1EnableCheckBox);
		this.groupBox2.Location = new System.Drawing.Point(7, 155);
		this.groupBox2.Name = "groupBox2";
		this.groupBox2.Size = new System.Drawing.Size(354, 149);
		this.groupBox2.TabIndex = 1;
		this.groupBox2.TabStop = false;
		this.groupBox2.Text = "Misc Connection Parameters";
		this.HV3EnableCheckBox.AutoSize = true;
		this.HV3EnableCheckBox.Checked = true;
		this.HV3EnableCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.HV3EnableCheckBox.Location = new System.Drawing.Point(262, 119);
		this.HV3EnableCheckBox.Name = "HV3EnableCheckBox";
		this.HV3EnableCheckBox.Size = new System.Drawing.Size(47, 17);
		this.HV3EnableCheckBox.TabIndex = 11;
		this.HV3EnableCheckBox.Text = "HV3";
		this.HV3EnableCheckBox.UseVisualStyleBackColor = true;
		this.HV2EnableCheckBox.AutoSize = true;
		this.HV2EnableCheckBox.Checked = true;
		this.HV2EnableCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.HV2EnableCheckBox.Location = new System.Drawing.Point(209, 119);
		this.HV2EnableCheckBox.Name = "HV2EnableCheckBox";
		this.HV2EnableCheckBox.Size = new System.Drawing.Size(47, 17);
		this.HV2EnableCheckBox.TabIndex = 10;
		this.HV2EnableCheckBox.Text = "HV2";
		this.HV2EnableCheckBox.UseVisualStyleBackColor = true;
		this.HV1EnableCheckBox.AutoSize = true;
		this.HV1EnableCheckBox.Checked = true;
		this.HV1EnableCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.HV1EnableCheckBox.Location = new System.Drawing.Point(156, 119);
		this.HV1EnableCheckBox.Name = "HV1EnableCheckBox";
		this.HV1EnableCheckBox.Size = new System.Drawing.Size(47, 17);
		this.HV1EnableCheckBox.TabIndex = 9;
		this.HV1EnableCheckBox.Text = "HV1";
		this.HV1EnableCheckBox.UseVisualStyleBackColor = true;
		this.clockOffsetValidCheckBox.AutoSize = true;
		this.clockOffsetValidCheckBox.Checked = true;
		this.clockOffsetValidCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.clockOffsetValidCheckBox.Location = new System.Drawing.Point(156, 87);
		this.clockOffsetValidCheckBox.Name = "clockOffsetValidCheckBox";
		this.clockOffsetValidCheckBox.Size = new System.Drawing.Size(110, 17);
		this.clockOffsetValidCheckBox.TabIndex = 8;
		this.clockOffsetValidCheckBox.Text = "Clock Offset Valid";
		this.clockOffsetValidCheckBox.UseVisualStyleBackColor = true;
		this.allowRoleSwitchCheckBox.AutoSize = true;
		this.allowRoleSwitchCheckBox.Checked = true;
		this.allowRoleSwitchCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.allowRoleSwitchCheckBox.Location = new System.Drawing.Point(156, 53);
		this.allowRoleSwitchCheckBox.Name = "allowRoleSwitchCheckBox";
		this.allowRoleSwitchCheckBox.Size = new System.Drawing.Size(111, 17);
		this.allowRoleSwitchCheckBox.TabIndex = 7;
		this.allowRoleSwitchCheckBox.Text = "Allow Role Switch";
		this.allowRoleSwitchCheckBox.UseVisualStyleBackColor = true;
		this.lmPerformMasterSlaveSwitchCheckBox.AutoSize = true;
		this.lmPerformMasterSlaveSwitchCheckBox.Location = new System.Drawing.Point(156, 19);
		this.lmPerformMasterSlaveSwitchCheckBox.Name = "lmPerformMasterSlaveSwitchCheckBox";
		this.lmPerformMasterSlaveSwitchCheckBox.Size = new System.Drawing.Size(180, 17);
		this.lmPerformMasterSlaveSwitchCheckBox.TabIndex = 6;
		this.lmPerformMasterSlaveSwitchCheckBox.Text = "LM Perform Master-Slave Switch";
		this.lmPerformMasterSlaveSwitchCheckBox.UseVisualStyleBackColor = true;
		this.DH5EnableCheckBox.AutoSize = true;
		this.DH5EnableCheckBox.Checked = true;
		this.DH5EnableCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.DH5EnableCheckBox.Location = new System.Drawing.Point(95, 87);
		this.DH5EnableCheckBox.Name = "DH5EnableCheckBox";
		this.DH5EnableCheckBox.Size = new System.Drawing.Size(48, 17);
		this.DH5EnableCheckBox.TabIndex = 5;
		this.DH5EnableCheckBox.Text = "DH5";
		this.DH5EnableCheckBox.UseVisualStyleBackColor = true;
		this.DH3EnableCheckBox.AutoSize = true;
		this.DH3EnableCheckBox.Checked = true;
		this.DH3EnableCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.DH3EnableCheckBox.Location = new System.Drawing.Point(95, 53);
		this.DH3EnableCheckBox.Name = "DH3EnableCheckBox";
		this.DH3EnableCheckBox.Size = new System.Drawing.Size(48, 17);
		this.DH3EnableCheckBox.TabIndex = 4;
		this.DH3EnableCheckBox.Text = "DH3";
		this.DH3EnableCheckBox.UseVisualStyleBackColor = true;
		this.DH1EnableCheckBox.AutoSize = true;
		this.DH1EnableCheckBox.Checked = true;
		this.DH1EnableCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.DH1EnableCheckBox.Location = new System.Drawing.Point(95, 20);
		this.DH1EnableCheckBox.Name = "DH1EnableCheckBox";
		this.DH1EnableCheckBox.Size = new System.Drawing.Size(48, 17);
		this.DH1EnableCheckBox.TabIndex = 3;
		this.DH1EnableCheckBox.Text = "DH1";
		this.DH1EnableCheckBox.UseVisualStyleBackColor = true;
		this.DM5EnableCheckBox.AutoSize = true;
		this.DM5EnableCheckBox.Checked = true;
		this.DM5EnableCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.DM5EnableCheckBox.Location = new System.Drawing.Point(9, 87);
		this.DM5EnableCheckBox.Name = "DM5EnableCheckBox";
		this.DM5EnableCheckBox.Size = new System.Drawing.Size(49, 17);
		this.DM5EnableCheckBox.TabIndex = 2;
		this.DM5EnableCheckBox.Text = "DM5";
		this.DM5EnableCheckBox.UseVisualStyleBackColor = true;
		this.DM3EnableCheckBox.AutoSize = true;
		this.DM3EnableCheckBox.Checked = true;
		this.DM3EnableCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.DM3EnableCheckBox.Location = new System.Drawing.Point(9, 53);
		this.DM3EnableCheckBox.Name = "DM3EnableCheckBox";
		this.DM3EnableCheckBox.Size = new System.Drawing.Size(49, 17);
		this.DM3EnableCheckBox.TabIndex = 1;
		this.DM3EnableCheckBox.Text = "DM3";
		this.DM3EnableCheckBox.UseVisualStyleBackColor = true;
		this.DM1EnableCheckBox.AutoSize = true;
		this.DM1EnableCheckBox.Checked = true;
		this.DM1EnableCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.DM1EnableCheckBox.Location = new System.Drawing.Point(9, 20);
		this.DM1EnableCheckBox.Name = "DM1EnableCheckBox";
		this.DM1EnableCheckBox.Size = new System.Drawing.Size(49, 17);
		this.DM1EnableCheckBox.TabIndex = 0;
		this.DM1EnableCheckBox.Text = "DM1";
		this.DM1EnableCheckBox.UseVisualStyleBackColor = true;
		this.groupBox1.Controls.Add(this.clockOffsetLabel);
		this.groupBox1.Controls.Add(this.classOfDeviceLabel);
		this.groupBox1.Controls.Add(this.label6);
		this.groupBox1.Controls.Add(this.label5);
		this.groupBox1.Controls.Add(this.pageScanRepModeComboBox);
		this.groupBox1.Controls.Add(this.label2);
		this.groupBox1.Controls.Add(this.remoteDeviceAddressTextBox);
		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(354, 141);
		this.groupBox1.TabIndex = 0;
		this.groupBox1.TabStop = false;
		this.groupBox1.Text = "Device Info";
		this.clockOffsetLabel.AutoSize = true;
		this.clockOffsetLabel.Location = new System.Drawing.Point(119, 109);
		this.clockOffsetLabel.Name = "clockOffsetLabel";
		this.clockOffsetLabel.Size = new System.Drawing.Size(0, 13);
		this.clockOffsetLabel.TabIndex = 11;
		this.classOfDeviceLabel.AutoSize = true;
		this.classOfDeviceLabel.Location = new System.Drawing.Point(119, 79);
		this.classOfDeviceLabel.Name = "classOfDeviceLabel";
		this.classOfDeviceLabel.Size = new System.Drawing.Size(0, 13);
		this.classOfDeviceLabel.TabIndex = 10;
		this.label6.AutoSize = true;
		this.label6.Location = new System.Drawing.Point(6, 109);
		this.label6.Name = "label6";
		this.label6.Size = new System.Drawing.Size(65, 13);
		this.label6.TabIndex = 9;
		this.label6.Text = "Clock Offset";
		this.label5.AutoSize = true;
		this.label5.Location = new System.Drawing.Point(6, 79);
		this.label5.Name = "label5";
		this.label5.Size = new System.Drawing.Size(81, 13);
		this.label5.TabIndex = 8;
		this.label5.Text = "Class of Device";
		this.pageScanRepModeComboBox.FormattingEnabled = true;
		this.pageScanRepModeComboBox.Location = new System.Drawing.Point(121, 45);
		this.pageScanRepModeComboBox.Name = "pageScanRepModeComboBox";
		this.pageScanRepModeComboBox.Size = new System.Drawing.Size(128, 21);
		this.pageScanRepModeComboBox.TabIndex = 5;
		this.label2.AutoSize = true;
		this.label2.Location = new System.Drawing.Point(6, 48);
		this.label2.Name = "label2";
		this.label2.Size = new System.Drawing.Size(113, 13);
		this.label2.TabIndex = 2;
		this.label2.Text = "Page Scan Rep Mode";
		this.remoteDeviceAddressTextBox.Location = new System.Drawing.Point(121, 17);
		this.remoteDeviceAddressTextBox.MaxLength = 12;
		this.remoteDeviceAddressTextBox.Name = "remoteDeviceAddressTextBox";
		this.remoteDeviceAddressTextBox.Size = new System.Drawing.Size(142, 20);
		this.remoteDeviceAddressTextBox.TabIndex = 1;
		this.label1.AutoSize = true;
		this.label1.Location = new System.Drawing.Point(6, 20);
		this.label1.Name = "label1";
		this.label1.Size = new System.Drawing.Size(82, 13);
		this.label1.TabIndex = 0;
		this.label1.Text = "Device Address";
		this.securityTabPage.Controls.Add(this.groupBox3);
		this.securityTabPage.Controls.Add(this.groupBox4);
		this.securityTabPage.Controls.Add(this.groupBox5);
		this.securityTabPage.Location = new System.Drawing.Point(4, 22);
		this.securityTabPage.Name = "securityTabPage";
		this.securityTabPage.Padding = new System.Windows.Forms.Padding(3);
		this.securityTabPage.Size = new System.Drawing.Size(367, 310);
		this.securityTabPage.TabIndex = 1;
		this.securityTabPage.Text = "Security";
		this.securityTabPage.UseVisualStyleBackColor = true;
		this.groupBox3.Controls.Add(this.pairingRadioButton);
		this.groupBox3.Controls.Add(this.authenticationRadioButton);
		this.groupBox3.Controls.Add(this.defaultRadioButton);
		this.groupBox3.Location = new System.Drawing.Point(6, 6);
		this.groupBox3.Name = "groupBox3";
		this.groupBox3.Size = new System.Drawing.Size(293, 47);
		this.groupBox3.TabIndex = 4;
		this.groupBox3.TabStop = false;
		this.groupBox3.Text = "Level";
		this.pairingRadioButton.AutoSize = true;
		this.pairingRadioButton.Location = new System.Drawing.Point(213, 19);
		this.pairingRadioButton.Name = "pairingRadioButton";
		this.pairingRadioButton.Size = new System.Drawing.Size(57, 17);
		this.pairingRadioButton.TabIndex = 2;
		this.pairingRadioButton.Text = "Pairing";
		this.pairingRadioButton.UseVisualStyleBackColor = true;
		this.authenticationRadioButton.AutoSize = true;
		this.authenticationRadioButton.Location = new System.Drawing.Point(105, 19);
		this.authenticationRadioButton.Name = "authenticationRadioButton";
		this.authenticationRadioButton.Size = new System.Drawing.Size(93, 17);
		this.authenticationRadioButton.TabIndex = 1;
		this.authenticationRadioButton.Text = "Authentication";
		this.authenticationRadioButton.UseVisualStyleBackColor = true;
		this.defaultRadioButton.AutoSize = true;
		this.defaultRadioButton.Checked = true;
		this.defaultRadioButton.Location = new System.Drawing.Point(27, 19);
		this.defaultRadioButton.Name = "defaultRadioButton";
		this.defaultRadioButton.Size = new System.Drawing.Size(59, 17);
		this.defaultRadioButton.TabIndex = 0;
		this.defaultRadioButton.TabStop = true;
		this.defaultRadioButton.Text = "Default";
		this.defaultRadioButton.UseVisualStyleBackColor = true;
		this.groupBox4.Controls.Add(this.pinCodeTextBox);
		this.groupBox4.Controls.Add(this.pinCodeHexRadioButton);
		this.groupBox4.Controls.Add(this.pinCodeAsciiRadioButton);
		this.groupBox4.Location = new System.Drawing.Point(6, 158);
		this.groupBox4.Name = "groupBox4";
		this.groupBox4.Size = new System.Drawing.Size(293, 72);
		this.groupBox4.TabIndex = 6;
		this.groupBox4.TabStop = false;
		this.groupBox4.Text = "Pin Code";
		this.pinCodeTextBox.Location = new System.Drawing.Point(30, 42);
		this.pinCodeTextBox.Name = "pinCodeTextBox";
		this.pinCodeTextBox.Size = new System.Drawing.Size(240, 20);
		this.pinCodeTextBox.TabIndex = 2;
		this.pinCodeTextBox.Text = "0102030405060708090A0B0C0D0E0F10";
		this.pinCodeHexRadioButton.AutoSize = true;
		this.pinCodeHexRadioButton.Checked = true;
		this.pinCodeHexRadioButton.Location = new System.Drawing.Point(149, 19);
		this.pinCodeHexRadioButton.Name = "pinCodeHexRadioButton";
		this.pinCodeHexRadioButton.Size = new System.Drawing.Size(44, 17);
		this.pinCodeHexRadioButton.TabIndex = 1;
		this.pinCodeHexRadioButton.TabStop = true;
		this.pinCodeHexRadioButton.Text = "Hex";
		this.pinCodeHexRadioButton.UseVisualStyleBackColor = true;
		this.pinCodeHexRadioButton.CheckedChanged += new System.EventHandler(pinCodeHexRadioButton_CheckedChanged);
		this.pinCodeAsciiRadioButton.AutoSize = true;
		this.pinCodeAsciiRadioButton.Location = new System.Drawing.Point(73, 19);
		this.pinCodeAsciiRadioButton.Name = "pinCodeAsciiRadioButton";
		this.pinCodeAsciiRadioButton.Size = new System.Drawing.Size(47, 17);
		this.pinCodeAsciiRadioButton.TabIndex = 0;
		this.pinCodeAsciiRadioButton.Text = "Ascii";
		this.pinCodeAsciiRadioButton.UseVisualStyleBackColor = true;
		this.pinCodeAsciiRadioButton.CheckedChanged += new System.EventHandler(pinCodeAsciiRadioButton_CheckedChanged);
		this.groupBox5.Controls.Add(this.linkKeyTextBox);
		this.groupBox5.Controls.Add(this.linkKeyHexRadioButton);
		this.groupBox5.Controls.Add(this.linkKeyAsciiRadioButton);
		this.groupBox5.Location = new System.Drawing.Point(6, 77);
		this.groupBox5.Name = "groupBox5";
		this.groupBox5.Size = new System.Drawing.Size(293, 72);
		this.groupBox5.TabIndex = 5;
		this.groupBox5.TabStop = false;
		this.groupBox5.Text = "Link Key";
		this.linkKeyTextBox.Location = new System.Drawing.Point(30, 42);
		this.linkKeyTextBox.Name = "linkKeyTextBox";
		this.linkKeyTextBox.Size = new System.Drawing.Size(240, 20);
		this.linkKeyTextBox.TabIndex = 2;
		this.linkKeyTextBox.Text = "0102030405060708090A0B0C0D0E0F10";
		this.linkKeyHexRadioButton.AutoSize = true;
		this.linkKeyHexRadioButton.Checked = true;
		this.linkKeyHexRadioButton.Location = new System.Drawing.Point(149, 19);
		this.linkKeyHexRadioButton.Name = "linkKeyHexRadioButton";
		this.linkKeyHexRadioButton.Size = new System.Drawing.Size(44, 17);
		this.linkKeyHexRadioButton.TabIndex = 1;
		this.linkKeyHexRadioButton.TabStop = true;
		this.linkKeyHexRadioButton.Text = "Hex";
		this.linkKeyHexRadioButton.UseVisualStyleBackColor = true;
		this.linkKeyHexRadioButton.CheckedChanged += new System.EventHandler(linkKeyHexRadioButton_CheckedChanged);
		this.linkKeyAsciiRadioButton.AutoSize = true;
		this.linkKeyAsciiRadioButton.Location = new System.Drawing.Point(73, 19);
		this.linkKeyAsciiRadioButton.Name = "linkKeyAsciiRadioButton";
		this.linkKeyAsciiRadioButton.Size = new System.Drawing.Size(47, 17);
		this.linkKeyAsciiRadioButton.TabIndex = 0;
		this.linkKeyAsciiRadioButton.Text = "Ascii";
		this.linkKeyAsciiRadioButton.UseVisualStyleBackColor = true;
		this.linkKeyAsciiRadioButton.CheckedChanged += new System.EventHandler(linkKeyAsciiRadioButton_CheckedChanged);
		this.simplePairingTabPage.Controls.Add(this.groupBox16);
		this.simplePairingTabPage.Controls.Add(this.groupBox18);
		this.simplePairingTabPage.Controls.Add(this.groupBox15);
		this.simplePairingTabPage.Controls.Add(this.groupBox17);
		this.simplePairingTabPage.Controls.Add(this.groupBox14);
		this.simplePairingTabPage.Location = new System.Drawing.Point(4, 22);
		this.simplePairingTabPage.Name = "simplePairingTabPage";
		this.simplePairingTabPage.Padding = new System.Windows.Forms.Padding(3);
		this.simplePairingTabPage.Size = new System.Drawing.Size(367, 310);
		this.simplePairingTabPage.TabIndex = 2;
		this.simplePairingTabPage.Text = "Simple Pairing";
		this.simplePairingTabPage.UseVisualStyleBackColor = true;
		this.groupBox16.Controls.Add(this.passkeyNegativeRadioButton);
		this.groupBox16.Controls.Add(this.passkeyPositiveRadioButton);
		this.groupBox16.Location = new System.Drawing.Point(6, 154);
		this.groupBox16.Name = "groupBox16";
		this.groupBox16.Size = new System.Drawing.Size(296, 59);
		this.groupBox16.TabIndex = 4;
		this.groupBox16.TabStop = false;
		this.groupBox16.Text = "User Passkey Request Reply";
		this.passkeyNegativeRadioButton.AutoSize = true;
		this.passkeyNegativeRadioButton.Location = new System.Drawing.Point(158, 21);
		this.passkeyNegativeRadioButton.Name = "passkeyNegativeRadioButton";
		this.passkeyNegativeRadioButton.Size = new System.Drawing.Size(68, 17);
		this.passkeyNegativeRadioButton.TabIndex = 1;
		this.passkeyNegativeRadioButton.Text = "Negative";
		this.passkeyNegativeRadioButton.UseVisualStyleBackColor = true;
		this.passkeyPositiveRadioButton.AutoSize = true;
		this.passkeyPositiveRadioButton.Checked = true;
		this.passkeyPositiveRadioButton.Location = new System.Drawing.Point(18, 21);
		this.passkeyPositiveRadioButton.Name = "passkeyPositiveRadioButton";
		this.passkeyPositiveRadioButton.Size = new System.Drawing.Size(62, 17);
		this.passkeyPositiveRadioButton.TabIndex = 0;
		this.passkeyPositiveRadioButton.TabStop = true;
		this.passkeyPositiveRadioButton.Text = "Positive";
		this.passkeyPositiveRadioButton.UseVisualStyleBackColor = true;
		this.groupBox18.Controls.Add(this.confirmationNegativeRadioButton);
		this.groupBox18.Controls.Add(this.confirmationPositiveRadioButton);
		this.groupBox18.Font = new System.Drawing.Font("Microsoft Sans Serif", 8f);
		this.groupBox18.Location = new System.Drawing.Point(133, 89);
		this.groupBox18.Name = "groupBox18";
		this.groupBox18.Size = new System.Drawing.Size(166, 59);
		this.groupBox18.TabIndex = 9;
		this.groupBox18.TabStop = false;
		this.groupBox18.Text = "User Confirmation Request Reply";
		this.confirmationNegativeRadioButton.AutoSize = true;
		this.confirmationNegativeRadioButton.Location = new System.Drawing.Point(94, 33);
		this.confirmationNegativeRadioButton.Name = "confirmationNegativeRadioButton";
		this.confirmationNegativeRadioButton.Size = new System.Drawing.Size(68, 17);
		this.confirmationNegativeRadioButton.TabIndex = 3;
		this.confirmationNegativeRadioButton.Text = "Negative";
		this.confirmationNegativeRadioButton.UseVisualStyleBackColor = true;
		this.confirmationPositiveRadioButton.AutoSize = true;
		this.confirmationPositiveRadioButton.Checked = true;
		this.confirmationPositiveRadioButton.Location = new System.Drawing.Point(6, 33);
		this.confirmationPositiveRadioButton.Name = "confirmationPositiveRadioButton";
		this.confirmationPositiveRadioButton.Size = new System.Drawing.Size(62, 17);
		this.confirmationPositiveRadioButton.TabIndex = 2;
		this.confirmationPositiveRadioButton.TabStop = true;
		this.confirmationPositiveRadioButton.Text = "Positive";
		this.confirmationPositiveRadioButton.UseVisualStyleBackColor = true;
		this.groupBox15.Controls.Add(this.mitmProtectionRequiredRadioButton);
		this.groupBox15.Controls.Add(this.mitmProtectionNotRequiredRadioButton);
		this.groupBox15.Location = new System.Drawing.Point(5, 219);
		this.groupBox15.Name = "groupBox15";
		this.groupBox15.Size = new System.Drawing.Size(293, 58);
		this.groupBox15.TabIndex = 6;
		this.groupBox15.TabStop = false;
		this.groupBox15.Text = "Authentication Requirements";
		this.mitmProtectionRequiredRadioButton.AutoSize = true;
		this.mitmProtectionRequiredRadioButton.Checked = true;
		this.mitmProtectionRequiredRadioButton.Location = new System.Drawing.Point(194, 19);
		this.mitmProtectionRequiredRadioButton.Name = "mitmProtectionRequiredRadioButton";
		this.mitmProtectionRequiredRadioButton.Size = new System.Drawing.Size(68, 17);
		this.mitmProtectionRequiredRadioButton.TabIndex = 5;
		this.mitmProtectionRequiredRadioButton.TabStop = true;
		this.mitmProtectionRequiredRadioButton.Text = "Required";
		this.mitmProtectionRequiredRadioButton.UseVisualStyleBackColor = true;
		this.mitmProtectionNotRequiredRadioButton.AutoSize = true;
		this.mitmProtectionNotRequiredRadioButton.Location = new System.Drawing.Point(15, 19);
		this.mitmProtectionNotRequiredRadioButton.Name = "mitmProtectionNotRequiredRadioButton";
		this.mitmProtectionNotRequiredRadioButton.Size = new System.Drawing.Size(170, 17);
		this.mitmProtectionNotRequiredRadioButton.TabIndex = 4;
		this.mitmProtectionNotRequiredRadioButton.Text = "MITM Protection Not Required";
		this.mitmProtectionNotRequiredRadioButton.UseVisualStyleBackColor = true;
		this.groupBox17.Controls.Add(this.outofBandYesRadioButton);
		this.groupBox17.Controls.Add(this.outofBandNoRadioButton);
		this.groupBox17.Location = new System.Drawing.Point(6, 89);
		this.groupBox17.Name = "groupBox17";
		this.groupBox17.Size = new System.Drawing.Size(120, 59);
		this.groupBox17.TabIndex = 8;
		this.groupBox17.TabStop = false;
		this.groupBox17.Text = "Out of Band Present";
		this.outofBandYesRadioButton.AutoSize = true;
		this.outofBandYesRadioButton.Location = new System.Drawing.Point(59, 33);
		this.outofBandYesRadioButton.Name = "outofBandYesRadioButton";
		this.outofBandYesRadioButton.Size = new System.Drawing.Size(43, 17);
		this.outofBandYesRadioButton.TabIndex = 1;
		this.outofBandYesRadioButton.Text = "Yes";
		this.outofBandYesRadioButton.UseVisualStyleBackColor = true;
		this.outofBandNoRadioButton.AutoSize = true;
		this.outofBandNoRadioButton.Checked = true;
		this.outofBandNoRadioButton.Location = new System.Drawing.Point(14, 33);
		this.outofBandNoRadioButton.Name = "outofBandNoRadioButton";
		this.outofBandNoRadioButton.Size = new System.Drawing.Size(39, 17);
		this.outofBandNoRadioButton.TabIndex = 0;
		this.outofBandNoRadioButton.TabStop = true;
		this.outofBandNoRadioButton.Text = "No";
		this.outofBandNoRadioButton.UseVisualStyleBackColor = true;
		this.groupBox14.Controls.Add(this.noInOutRadioButton);
		this.groupBox14.Controls.Add(this.keyboardOnlyRadioButton);
		this.groupBox14.Controls.Add(this.displayYesNoRadioButton);
		this.groupBox14.Controls.Add(this.displayOnlyRadioButton);
		this.groupBox14.Location = new System.Drawing.Point(6, 6);
		this.groupBox14.Name = "groupBox14";
		this.groupBox14.Size = new System.Drawing.Size(293, 77);
		this.groupBox14.TabIndex = 5;
		this.groupBox14.TabStop = false;
		this.groupBox14.Text = "User Input Capability";
		this.noInOutRadioButton.AutoSize = true;
		this.noInOutRadioButton.Location = new System.Drawing.Point(154, 42);
		this.noInOutRadioButton.Name = "noInOutRadioButton";
		this.noInOutRadioButton.Size = new System.Drawing.Size(118, 17);
		this.noInOutRadioButton.TabIndex = 3;
		this.noInOutRadioButton.Text = "No Input No Output";
		this.noInOutRadioButton.UseVisualStyleBackColor = true;
		this.keyboardOnlyRadioButton.AutoSize = true;
		this.keyboardOnlyRadioButton.Location = new System.Drawing.Point(19, 42);
		this.keyboardOnlyRadioButton.Name = "keyboardOnlyRadioButton";
		this.keyboardOnlyRadioButton.Size = new System.Drawing.Size(94, 17);
		this.keyboardOnlyRadioButton.TabIndex = 2;
		this.keyboardOnlyRadioButton.Text = "Keyboard Only";
		this.keyboardOnlyRadioButton.UseVisualStyleBackColor = true;
		this.displayYesNoRadioButton.AutoSize = true;
		this.displayYesNoRadioButton.Location = new System.Drawing.Point(154, 19);
		this.displayYesNoRadioButton.Name = "displayYesNoRadioButton";
		this.displayYesNoRadioButton.Size = new System.Drawing.Size(99, 17);
		this.displayYesNoRadioButton.TabIndex = 1;
		this.displayYesNoRadioButton.Text = "Display Yes/No";
		this.displayYesNoRadioButton.UseVisualStyleBackColor = true;
		this.displayOnlyRadioButton.AutoSize = true;
		this.displayOnlyRadioButton.Checked = true;
		this.displayOnlyRadioButton.Location = new System.Drawing.Point(19, 19);
		this.displayOnlyRadioButton.Name = "displayOnlyRadioButton";
		this.displayOnlyRadioButton.Size = new System.Drawing.Size(83, 17);
		this.displayOnlyRadioButton.TabIndex = 0;
		this.displayOnlyRadioButton.TabStop = true;
		this.displayOnlyRadioButton.Text = "Display Only";
		this.displayOnlyRadioButton.UseVisualStyleBackColor = true;
		this.outOfBandTabPage.Controls.Add(this.groupBox20);
		this.outOfBandTabPage.Controls.Add(this.groupBox19);
		this.outOfBandTabPage.Location = new System.Drawing.Point(4, 22);
		this.outOfBandTabPage.Name = "outOfBandTabPage";
		this.outOfBandTabPage.Padding = new System.Windows.Forms.Padding(3);
		this.outOfBandTabPage.Size = new System.Drawing.Size(367, 310);
		this.outOfBandTabPage.TabIndex = 3;
		this.outOfBandTabPage.Text = "Out of Band";
		this.outOfBandTabPage.UseVisualStyleBackColor = true;
		this.groupBox20.Controls.Add(this.oobRTextBox);
		this.groupBox20.Location = new System.Drawing.Point(6, 101);
		this.groupBox20.Name = "groupBox20";
		this.groupBox20.Size = new System.Drawing.Size(293, 78);
		this.groupBox20.TabIndex = 3;
		this.groupBox20.TabStop = false;
		this.groupBox20.Text = "OOB R (Hex)";
		this.oobRTextBox.Location = new System.Drawing.Point(6, 35);
		this.oobRTextBox.MaxLength = 32;
		this.oobRTextBox.Name = "oobRTextBox";
		this.oobRTextBox.Size = new System.Drawing.Size(280, 20);
		this.oobRTextBox.TabIndex = 1;
		this.groupBox19.Controls.Add(this.oobCTextBox);
		this.groupBox19.Location = new System.Drawing.Point(6, 6);
		this.groupBox19.Name = "groupBox19";
		this.groupBox19.Size = new System.Drawing.Size(293, 78);
		this.groupBox19.TabIndex = 2;
		this.groupBox19.TabStop = false;
		this.groupBox19.Text = "OOB C (Hex)";
		this.oobCTextBox.Location = new System.Drawing.Point(7, 32);
		this.oobCTextBox.MaxLength = 32;
		this.oobCTextBox.Name = "oobCTextBox";
		this.oobCTextBox.Size = new System.Drawing.Size(280, 20);
		this.oobCTextBox.TabIndex = 0;
		this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
		this.cancelButton.Location = new System.Drawing.Point(237, 355);
		this.cancelButton.Name = "cancelButton";
		this.cancelButton.Size = new System.Drawing.Size(75, 23);
		this.cancelButton.TabIndex = 4;
		this.cancelButton.Text = "Cancel";
		this.cancelButton.UseVisualStyleBackColor = true;
		this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
		this.okButton.Location = new System.Drawing.Point(82, 355);
		this.okButton.Name = "okButton";
		this.okButton.Size = new System.Drawing.Size(75, 23);
		this.okButton.TabIndex = 3;
		this.okButton.Text = "OK";
		this.okButton.UseVisualStyleBackColor = true;
		this.okButton.Click += new System.EventHandler(okButton_Click);
		base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(400, 390);
		base.Controls.Add(this.cancelButton);
		base.Controls.Add(this.okButton);
		base.Controls.Add(this.remoteDeviceOptionTabControl);
		base.Name = "RemoteDeviceOptions";
		base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
		this.Text = "Remote Device Options";
		base.Load += new System.EventHandler(RemoteDeviceOptions_Load);
		this.remoteDeviceOptionTabControl.ResumeLayout(false);
		this.remoteDeviceAttributeTabPage.ResumeLayout(false);
		this.groupBox2.ResumeLayout(false);
		this.groupBox2.PerformLayout();
		this.groupBox1.ResumeLayout(false);
		this.groupBox1.PerformLayout();
		this.securityTabPage.ResumeLayout(false);
		this.groupBox3.ResumeLayout(false);
		this.groupBox3.PerformLayout();
		this.groupBox4.ResumeLayout(false);
		this.groupBox4.PerformLayout();
		this.groupBox5.ResumeLayout(false);
		this.groupBox5.PerformLayout();
		this.simplePairingTabPage.ResumeLayout(false);
		this.groupBox16.ResumeLayout(false);
		this.groupBox16.PerformLayout();
		this.groupBox18.ResumeLayout(false);
		this.groupBox18.PerformLayout();
		this.groupBox15.ResumeLayout(false);
		this.groupBox15.PerformLayout();
		this.groupBox17.ResumeLayout(false);
		this.groupBox17.PerformLayout();
		this.groupBox14.ResumeLayout(false);
		this.groupBox14.PerformLayout();
		this.outOfBandTabPage.ResumeLayout(false);
		this.groupBox20.ResumeLayout(false);
		this.groupBox20.PerformLayout();
		this.groupBox19.ResumeLayout(false);
		this.groupBox19.PerformLayout();
		base.ResumeLayout(false);
	}
}
