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

namespace QCRPG.TSL.BT;

public class ConnectionPacketType : Form
{
	private bool DM1enable;

	private bool DM3enable;

	private bool DM5enable;

	private bool DH1enable;

	private bool DH3enable;

	private bool DH5enable;

	private bool TwoDH1enable;

	private bool TwoDH3enable;

	private bool TwoDH5enable;

	private bool ThreeDH1enable;

	private bool ThreeDH3enable;

	private bool ThreeDH5enable;

	private bool HV1enable;

	private bool HV2enable;

	private bool HV3enable;

	private bool IsSCO;

	private IContainer components;

	private GroupBox groupBox1;

	private CheckBox threeDH5CheckBox;

	private CheckBox threeDH3CheckBox;

	private CheckBox threeDH1CheckBox;

	private CheckBox dh5CheckBox;

	private CheckBox dh3CheckBox;

	private CheckBox dh1CheckBox;

	private CheckBox twoDH5CheckBox;

	private CheckBox twoDH3CheckBox;

	private CheckBox twoDH1CheckBox;

	private CheckBox dm5CheckBox;

	private CheckBox dm3CheckBox;

	private CheckBox dm1CheckBox;

	private GroupBox groupBox2;

	private CheckBox hv3CheckBox;

	private CheckBox hv2CheckBox;

	private CheckBox hv1CheckBox;

	private Button cancelButton;

	private Button okButton;

	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 twoDH1enable
	{
		get
		{
			return TwoDH1enable;
		}
		set
		{
			TwoDH1enable = value;
		}
	}

	public bool twoDH3enable
	{
		get
		{
			return TwoDH3enable;
		}
		set
		{
			TwoDH3enable = value;
		}
	}

	public bool twoDH5enable
	{
		get
		{
			return TwoDH5enable;
		}
		set
		{
			TwoDH5enable = value;
		}
	}

	public bool threeDH1enable
	{
		get
		{
			return ThreeDH1enable;
		}
		set
		{
			ThreeDH1enable = value;
		}
	}

	public bool threeDH3enable
	{
		get
		{
			return ThreeDH3enable;
		}
		set
		{
			ThreeDH3enable = value;
		}
	}

	public bool threeDH5enable
	{
		get
		{
			return ThreeDH5enable;
		}
		set
		{
			ThreeDH5enable = 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 isSCO
	{
		get
		{
			return IsSCO;
		}
		set
		{
			IsSCO = value;
		}
	}

	public ConnectionPacketType()
	{
		InitializeComponent();
	}

	private void ConnectionPacketType_Load(object sender, EventArgs e)
	{
		if (IsSCO)
		{
			CheckBox checkBox = dm1CheckBox;
			CheckBox checkBox2 = dm3CheckBox;
			bool flag2 = (dm5CheckBox.Enabled = false);
			bool enabled = (checkBox2.Enabled = flag2);
			checkBox.Enabled = enabled;
			CheckBox checkBox3 = dh1CheckBox;
			CheckBox checkBox4 = dh3CheckBox;
			bool flag5 = (dh5CheckBox.Enabled = false);
			bool enabled2 = (checkBox4.Enabled = flag5);
			checkBox3.Enabled = enabled2;
			CheckBox checkBox5 = twoDH1CheckBox;
			CheckBox checkBox6 = twoDH3CheckBox;
			bool flag8 = (twoDH5CheckBox.Enabled = false);
			bool enabled3 = (checkBox6.Enabled = flag8);
			checkBox5.Enabled = enabled3;
			CheckBox checkBox7 = threeDH1CheckBox;
			CheckBox checkBox8 = threeDH3CheckBox;
			bool flag11 = (threeDH5CheckBox.Enabled = false);
			bool enabled4 = (checkBox8.Enabled = flag11);
			checkBox7.Enabled = enabled4;
			CheckBox checkBox9 = hv1CheckBox;
			CheckBox checkBox10 = hv2CheckBox;
			bool flag14 = (hv3CheckBox.Enabled = true);
			bool enabled5 = (checkBox10.Enabled = flag14);
			checkBox9.Enabled = enabled5;
			hv1CheckBox.Checked = HV1enable;
			hv2CheckBox.Checked = HV2enable;
			hv3CheckBox.Checked = HV3enable;
		}
		else
		{
			dm1CheckBox.Checked = DM1enable;
			dm3CheckBox.Checked = DM3enable;
			dm5CheckBox.Checked = DM5enable;
			dh1CheckBox.Checked = DH1enable;
			dh3CheckBox.Checked = DH3enable;
			dh5CheckBox.Checked = DH5enable;
			twoDH1CheckBox.Checked = TwoDH1enable;
			twoDH3CheckBox.Checked = TwoDH3enable;
			twoDH5CheckBox.Checked = TwoDH5enable;
			threeDH1CheckBox.Checked = ThreeDH1enable;
			threeDH3CheckBox.Checked = ThreeDH3enable;
			threeDH5CheckBox.Checked = ThreeDH5enable;
		}
	}

	private void okButton_Click(object sender, EventArgs e)
	{
		if (IsSCO)
		{
			HV1enable = hv1CheckBox.Checked;
			HV2enable = hv2CheckBox.Checked;
			HV3enable = hv3CheckBox.Checked;
			return;
		}
		DM1enable = dm1CheckBox.Checked;
		DM3enable = dm3CheckBox.Checked;
		DM5enable = dm5CheckBox.Checked;
		DH1enable = dh1CheckBox.Checked;
		DH3enable = dh3CheckBox.Checked;
		DH5enable = dh5CheckBox.Checked;
		TwoDH1enable = twoDH1CheckBox.Checked;
		TwoDH3enable = twoDH3CheckBox.Checked;
		TwoDH5enable = twoDH5CheckBox.Checked;
		ThreeDH1enable = threeDH1CheckBox.Checked;
		ThreeDH3enable = threeDH3CheckBox.Checked;
		ThreeDH5enable = threeDH5CheckBox.Checked;
	}

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

	private void InitializeComponent()
	{
		this.groupBox1 = new System.Windows.Forms.GroupBox();
		this.threeDH5CheckBox = new System.Windows.Forms.CheckBox();
		this.threeDH3CheckBox = new System.Windows.Forms.CheckBox();
		this.threeDH1CheckBox = new System.Windows.Forms.CheckBox();
		this.dh5CheckBox = new System.Windows.Forms.CheckBox();
		this.dh3CheckBox = new System.Windows.Forms.CheckBox();
		this.dh1CheckBox = new System.Windows.Forms.CheckBox();
		this.twoDH5CheckBox = new System.Windows.Forms.CheckBox();
		this.twoDH3CheckBox = new System.Windows.Forms.CheckBox();
		this.twoDH1CheckBox = new System.Windows.Forms.CheckBox();
		this.dm5CheckBox = new System.Windows.Forms.CheckBox();
		this.dm3CheckBox = new System.Windows.Forms.CheckBox();
		this.dm1CheckBox = new System.Windows.Forms.CheckBox();
		this.groupBox2 = new System.Windows.Forms.GroupBox();
		this.hv3CheckBox = new System.Windows.Forms.CheckBox();
		this.hv2CheckBox = new System.Windows.Forms.CheckBox();
		this.hv1CheckBox = new System.Windows.Forms.CheckBox();
		this.cancelButton = new System.Windows.Forms.Button();
		this.okButton = new System.Windows.Forms.Button();
		this.groupBox1.SuspendLayout();
		this.groupBox2.SuspendLayout();
		base.SuspendLayout();
		this.groupBox1.Controls.Add(this.threeDH5CheckBox);
		this.groupBox1.Controls.Add(this.threeDH3CheckBox);
		this.groupBox1.Controls.Add(this.threeDH1CheckBox);
		this.groupBox1.Controls.Add(this.dh5CheckBox);
		this.groupBox1.Controls.Add(this.dh3CheckBox);
		this.groupBox1.Controls.Add(this.dh1CheckBox);
		this.groupBox1.Controls.Add(this.twoDH5CheckBox);
		this.groupBox1.Controls.Add(this.twoDH3CheckBox);
		this.groupBox1.Controls.Add(this.twoDH1CheckBox);
		this.groupBox1.Controls.Add(this.dm5CheckBox);
		this.groupBox1.Controls.Add(this.dm3CheckBox);
		this.groupBox1.Controls.Add(this.dm1CheckBox);
		this.groupBox1.Location = new System.Drawing.Point(13, 12);
		this.groupBox1.Name = "groupBox1";
		this.groupBox1.Size = new System.Drawing.Size(259, 101);
		this.groupBox1.TabIndex = 0;
		this.groupBox1.TabStop = false;
		this.groupBox1.Text = "ACL Packet Type";
		this.threeDH5CheckBox.AutoSize = true;
		this.threeDH5CheckBox.Location = new System.Drawing.Point(179, 66);
		this.threeDH5CheckBox.Name = "threeDH5CheckBox";
		this.threeDH5CheckBox.Size = new System.Drawing.Size(57, 17);
		this.threeDH5CheckBox.TabIndex = 0;
		this.threeDH5CheckBox.Text = "3-DH5";
		this.threeDH5CheckBox.UseVisualStyleBackColor = true;
		this.threeDH3CheckBox.AutoSize = true;
		this.threeDH3CheckBox.Location = new System.Drawing.Point(179, 43);
		this.threeDH3CheckBox.Name = "threeDH3CheckBox";
		this.threeDH3CheckBox.Size = new System.Drawing.Size(57, 17);
		this.threeDH3CheckBox.TabIndex = 0;
		this.threeDH3CheckBox.Text = "3-DH3";
		this.threeDH3CheckBox.UseVisualStyleBackColor = true;
		this.threeDH1CheckBox.AutoSize = true;
		this.threeDH1CheckBox.Location = new System.Drawing.Point(179, 20);
		this.threeDH1CheckBox.Name = "threeDH1CheckBox";
		this.threeDH1CheckBox.Size = new System.Drawing.Size(57, 17);
		this.threeDH1CheckBox.TabIndex = 0;
		this.threeDH1CheckBox.Text = "3-DH1";
		this.threeDH1CheckBox.UseVisualStyleBackColor = true;
		this.dh5CheckBox.AutoSize = true;
		this.dh5CheckBox.Location = new System.Drawing.Point(62, 66);
		this.dh5CheckBox.Name = "dh5CheckBox";
		this.dh5CheckBox.Size = new System.Drawing.Size(48, 17);
		this.dh5CheckBox.TabIndex = 0;
		this.dh5CheckBox.Text = "DH5";
		this.dh5CheckBox.UseVisualStyleBackColor = true;
		this.dh3CheckBox.AutoSize = true;
		this.dh3CheckBox.Location = new System.Drawing.Point(62, 43);
		this.dh3CheckBox.Name = "dh3CheckBox";
		this.dh3CheckBox.Size = new System.Drawing.Size(48, 17);
		this.dh3CheckBox.TabIndex = 0;
		this.dh3CheckBox.Text = "DH3";
		this.dh3CheckBox.UseVisualStyleBackColor = true;
		this.dh1CheckBox.AutoSize = true;
		this.dh1CheckBox.Location = new System.Drawing.Point(62, 20);
		this.dh1CheckBox.Name = "dh1CheckBox";
		this.dh1CheckBox.Size = new System.Drawing.Size(48, 17);
		this.dh1CheckBox.TabIndex = 0;
		this.dh1CheckBox.Text = "DH1";
		this.dh1CheckBox.UseVisualStyleBackColor = true;
		this.twoDH5CheckBox.AutoSize = true;
		this.twoDH5CheckBox.Location = new System.Drawing.Point(116, 66);
		this.twoDH5CheckBox.Name = "twoDH5CheckBox";
		this.twoDH5CheckBox.Size = new System.Drawing.Size(57, 17);
		this.twoDH5CheckBox.TabIndex = 0;
		this.twoDH5CheckBox.Text = "2-DH5";
		this.twoDH5CheckBox.UseVisualStyleBackColor = true;
		this.twoDH3CheckBox.AutoSize = true;
		this.twoDH3CheckBox.Location = new System.Drawing.Point(116, 43);
		this.twoDH3CheckBox.Name = "twoDH3CheckBox";
		this.twoDH3CheckBox.Size = new System.Drawing.Size(57, 17);
		this.twoDH3CheckBox.TabIndex = 0;
		this.twoDH3CheckBox.Text = "2-DH3";
		this.twoDH3CheckBox.UseVisualStyleBackColor = true;
		this.twoDH1CheckBox.AutoSize = true;
		this.twoDH1CheckBox.Location = new System.Drawing.Point(116, 20);
		this.twoDH1CheckBox.Name = "twoDH1CheckBox";
		this.twoDH1CheckBox.Size = new System.Drawing.Size(57, 17);
		this.twoDH1CheckBox.TabIndex = 0;
		this.twoDH1CheckBox.Text = "2-DH1";
		this.twoDH1CheckBox.UseVisualStyleBackColor = true;
		this.dm5CheckBox.AutoSize = true;
		this.dm5CheckBox.Location = new System.Drawing.Point(7, 66);
		this.dm5CheckBox.Name = "dm5CheckBox";
		this.dm5CheckBox.Size = new System.Drawing.Size(49, 17);
		this.dm5CheckBox.TabIndex = 0;
		this.dm5CheckBox.Text = "DM5";
		this.dm5CheckBox.UseVisualStyleBackColor = true;
		this.dm3CheckBox.AutoSize = true;
		this.dm3CheckBox.Location = new System.Drawing.Point(7, 43);
		this.dm3CheckBox.Name = "dm3CheckBox";
		this.dm3CheckBox.Size = new System.Drawing.Size(49, 17);
		this.dm3CheckBox.TabIndex = 0;
		this.dm3CheckBox.Text = "DM3";
		this.dm3CheckBox.UseVisualStyleBackColor = true;
		this.dm1CheckBox.AutoSize = true;
		this.dm1CheckBox.Location = new System.Drawing.Point(7, 20);
		this.dm1CheckBox.Name = "dm1CheckBox";
		this.dm1CheckBox.Size = new System.Drawing.Size(49, 17);
		this.dm1CheckBox.TabIndex = 0;
		this.dm1CheckBox.Text = "DM1";
		this.dm1CheckBox.UseVisualStyleBackColor = true;
		this.groupBox2.Controls.Add(this.hv3CheckBox);
		this.groupBox2.Controls.Add(this.hv2CheckBox);
		this.groupBox2.Controls.Add(this.hv1CheckBox);
		this.groupBox2.Location = new System.Drawing.Point(13, 120);
		this.groupBox2.Name = "groupBox2";
		this.groupBox2.Size = new System.Drawing.Size(259, 50);
		this.groupBox2.TabIndex = 1;
		this.groupBox2.TabStop = false;
		this.groupBox2.Text = "SCO Packet Type";
		this.hv3CheckBox.AutoSize = true;
		this.hv3CheckBox.Enabled = false;
		this.hv3CheckBox.Location = new System.Drawing.Point(206, 20);
		this.hv3CheckBox.Name = "hv3CheckBox";
		this.hv3CheckBox.Size = new System.Drawing.Size(47, 17);
		this.hv3CheckBox.TabIndex = 0;
		this.hv3CheckBox.Text = "HV3";
		this.hv3CheckBox.UseVisualStyleBackColor = true;
		this.hv2CheckBox.AutoSize = true;
		this.hv2CheckBox.Enabled = false;
		this.hv2CheckBox.Location = new System.Drawing.Point(106, 20);
		this.hv2CheckBox.Name = "hv2CheckBox";
		this.hv2CheckBox.Size = new System.Drawing.Size(47, 17);
		this.hv2CheckBox.TabIndex = 0;
		this.hv2CheckBox.Text = "HV2";
		this.hv2CheckBox.UseVisualStyleBackColor = true;
		this.hv1CheckBox.AutoSize = true;
		this.hv1CheckBox.Enabled = false;
		this.hv1CheckBox.Location = new System.Drawing.Point(7, 20);
		this.hv1CheckBox.Name = "hv1CheckBox";
		this.hv1CheckBox.Size = new System.Drawing.Size(47, 17);
		this.hv1CheckBox.TabIndex = 0;
		this.hv1CheckBox.Text = "HV1";
		this.hv1CheckBox.UseVisualStyleBackColor = true;
		this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
		this.cancelButton.Location = new System.Drawing.Point(169, 176);
		this.cancelButton.Name = "cancelButton";
		this.cancelButton.Size = new System.Drawing.Size(75, 23);
		this.cancelButton.TabIndex = 11;
		this.cancelButton.Text = "Cancel";
		this.cancelButton.UseVisualStyleBackColor = true;
		this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
		this.okButton.Location = new System.Drawing.Point(40, 176);
		this.okButton.Name = "okButton";
		this.okButton.Size = new System.Drawing.Size(75, 23);
		this.okButton.TabIndex = 10;
		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(284, 212);
		base.Controls.Add(this.cancelButton);
		base.Controls.Add(this.okButton);
		base.Controls.Add(this.groupBox2);
		base.Controls.Add(this.groupBox1);
		base.Name = "ConnectionPacketType";
		base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
		this.Text = "Connection Packet Type";
		base.Load += new System.EventHandler(ConnectionPacketType_Load);
		this.groupBox1.ResumeLayout(false);
		this.groupBox1.PerformLayout();
		this.groupBox2.ResumeLayout(false);
		this.groupBox2.PerformLayout();
		base.ResumeLayout(false);
	}
}
