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

namespace QCRPG.TSL.BT;

public class EnhancedSynchronousConnectionUserControl : UserControl
{
	private enum dataPath
	{
		HCI = 0,
		ACI0_SLOT0 = 1,
		ACI0_SLOT1 = 2,
		ACI0_SLOT2 = 3,
		ACI1_SLOT0 = 4,
		ACI1_SLOT1 = 5,
		ACI1_SLOT2 = 6,
		ACI2_SLOT0 = 7,
		ACI2_SLOT1 = 8,
		ACI2_SLOT2 = 9,
		AUP0 = 10,
		AUP1 = 11,
		AUP2 = 12,
		NVM = 252,
		Relay = 253,
		Disabled = 254,
		Test_Mode = 255
	}

	private const int ESCO_TRANSMITBANDHWIDTH = 8000;

	private const int ESCO_RECEIVEBANDWIDTH = 8000;

	private const int ESCO_MAXLATENCY = 10;

	private const bool ESCO_MSMAXLATENCY = true;

	private const bool ESCO_SLOTMAXLATENCY = false;

	private const bool ESCO_NORETRANS = false;

	private const bool ESCO_OPTIMIZEPOWER = true;

	private const bool ESCO_OPTIMIZEQUALITY = false;

	private const bool ESCO_DONTCARE = false;

	private const bool ESCO_HV1ENABLE = true;

	private const bool ESCO_HV2ENABLE = true;

	private const bool ESCO_HV3ENABLE = true;

	private const bool ESCO_EV3ENABLE = true;

	private const bool ESCO_EV4ENABLE = true;

	private const bool ESCO_EV5ENABLE = true;

	private const bool ESCO_2EV3ENABLE = true;

	private const bool ESCO_3EV3ENABLE = true;

	private const bool ESCO_2EV5ENABLE = true;

	private const bool ESCO_3EV5ENABLE = true;

	private const string ESCO_VOICESETTING = "0060";

	private const int ESCO_DATAPATH = 0;

	private const long ESCO_TXRXCODINGFORMAT = 0L;

	private const int ESCO_PCMSAMPLEPAYLOAD = 3;

	private const int ESCO_IOCODEDDATASIZE = 0;

	private const int ESCO_IOPCMDATAFORMAT = 0;

	private const long ESCO_IOCODINGFORMAT = 0L;

	private int TransmitBandwidth = 8000;

	private int ReceiveBandwidth = 8000;

	private int MaxLatency = 10;

	private bool MsMaxLatency = true;

	private bool SlotMaxLatency;

	private bool NoRestrans;

	private bool OptimizePower = true;

	private bool OptimizeQuality;

	private bool DontCare;

	private bool ESCOHV1enable = true;

	private bool ESCOHV2enable = true;

	private bool ESCOHV3enable = true;

	private bool ESCOEV3enable = true;

	private bool ESCOEV4enable = true;

	private bool ESCOEV5enable = true;

	private bool ESCO2EV3enable = true;

	private bool ESCO3EV3enable = true;

	private bool ESCO2EV5enable = true;

	private bool ESCO3EV5enable = true;

	private int inputDataPath;

	private int outputDataPath;

	private long txRxCodingFormat;

	private int pcmSamplePayload = 3;

	private int ioCodedDataSize;

	private int ioPcmDataFormat = 3;

	private long ioCodingFormat;

	private EnhancedVoiceSettings enhancedVoiceSettings;

	private IContainer components;

	private GroupBox groupBox29;

	private RadioButton slotRadioButton;

	private RadioButton msRadioButton;

	private TextBox maxLatencyTextBox;

	private GroupBox groupBox28;

	private CheckBox esco3EV5CheckBox;

	private CheckBox esco3EV3CheckBox;

	private CheckBox esco2EV5CheckBox;

	private CheckBox esco2EV3CheckBox;

	private CheckBox escoEV5CheckBox;

	private CheckBox escoEV4CheckBox;

	private CheckBox escoEV3CheckBox;

	private CheckBox escoHV3CheckBox;

	private CheckBox escoHV2CheckBox;

	private CheckBox escoHV1CheckBox;

	private GroupBox groupBox27;

	private TextBox receiveTextBox;

	private TextBox transmitTextBox;

	private Label label10;

	private Label label11;

	private GroupBox groupBox26;

	private Button enhancedVoiceSettingsButton;

	private GroupBox groupBox25;

	private RadioButton dontCareRadioButton;

	private RadioButton optimizeQualityRadioButton;

	private RadioButton optimizePowerRadioButton;

	private RadioButton noRetransRadioButton;

	private Button resetButton;

	private GroupBox groupBox24;

	private ComboBox outputDataPathComboBox;

	private ComboBox inputDataPathComboBox;

	private Label label13;

	private Label label12;

	private FlowLayoutPanel flowLayoutPanel1;

	public int transmitBandwidth
	{
		get
		{
			return TransmitBandwidth;
		}
		set
		{
			TransmitBandwidth = value;
		}
	}

	public int receiveBandwidth
	{
		get
		{
			return ReceiveBandwidth;
		}
		set
		{
			ReceiveBandwidth = value;
		}
	}

	public int maxLatency
	{
		get
		{
			return MaxLatency;
		}
		set
		{
			MaxLatency = value;
		}
	}

	public bool msMaxLatency
	{
		get
		{
			return MsMaxLatency;
		}
		set
		{
			MsMaxLatency = value;
		}
	}

	public bool slotMaxLatency
	{
		get
		{
			return SlotMaxLatency;
		}
		set
		{
			SlotMaxLatency = value;
		}
	}

	public bool noRestrans
	{
		get
		{
			return NoRestrans;
		}
		set
		{
			NoRestrans = value;
		}
	}

	public bool optimizePower
	{
		get
		{
			return OptimizePower;
		}
		set
		{
			OptimizePower = value;
		}
	}

	public bool optimizeQuality
	{
		get
		{
			return OptimizeQuality;
		}
		set
		{
			OptimizeQuality = value;
		}
	}

	public bool dontCare
	{
		get
		{
			return DontCare;
		}
		set
		{
			DontCare = value;
		}
	}

	public bool escoHV1enable
	{
		get
		{
			return ESCOHV1enable;
		}
		set
		{
			ESCOHV1enable = value;
		}
	}

	public bool escoHV2enable
	{
		get
		{
			return ESCOHV2enable;
		}
		set
		{
			ESCOHV2enable = value;
		}
	}

	public bool escoHV3enable
	{
		get
		{
			return ESCOHV3enable;
		}
		set
		{
			ESCOHV3enable = value;
		}
	}

	public bool escoEV3enable
	{
		get
		{
			return ESCOEV3enable;
		}
		set
		{
			ESCOEV3enable = value;
		}
	}

	public bool escoEV4enable
	{
		get
		{
			return ESCOEV4enable;
		}
		set
		{
			ESCOEV4enable = value;
		}
	}

	public bool escoEV5enable
	{
		get
		{
			return ESCOEV5enable;
		}
		set
		{
			ESCOEV5enable = value;
		}
	}

	public bool esco2EV3enable
	{
		get
		{
			return ESCO2EV3enable;
		}
		set
		{
			ESCO2EV3enable = value;
		}
	}

	public bool esco3EV3enable
	{
		get
		{
			return ESCO3EV3enable;
		}
		set
		{
			ESCO3EV3enable = value;
		}
	}

	public bool esco2EV5enable
	{
		get
		{
			return ESCO2EV5enable;
		}
		set
		{
			ESCO2EV5enable = value;
		}
	}

	public bool esco3EV5enable
	{
		get
		{
			return ESCO3EV5enable;
		}
		set
		{
			ESCO3EV5enable = value;
		}
	}

	public int InputDataPath
	{
		get
		{
			return inputDataPath;
		}
		set
		{
			inputDataPath = value;
		}
	}

	public int OutputDataPath
	{
		get
		{
			return outputDataPath;
		}
		set
		{
			outputDataPath = value;
		}
	}

	public long TxRxCodingFormat
	{
		get
		{
			return txRxCodingFormat;
		}
		set
		{
			txRxCodingFormat = value;
		}
	}

	public int PcmSamplePayload
	{
		get
		{
			return pcmSamplePayload;
		}
		set
		{
			pcmSamplePayload = value;
		}
	}

	public int IOCodedDataSize
	{
		get
		{
			return ioCodedDataSize;
		}
		set
		{
			ioCodedDataSize = value;
		}
	}

	public int IOPcmDataFormat
	{
		get
		{
			return ioPcmDataFormat;
		}
		set
		{
			ioPcmDataFormat = value;
		}
	}

	public long IOCodingFormat
	{
		get
		{
			return ioCodingFormat;
		}
		set
		{
			ioCodingFormat = value;
		}
	}

	public EnhancedSynchronousConnectionUserControl()
	{
		InitializeComponent();
		inputDataPathComboBox.Items.AddRange(Enum.GetNames(typeof(dataPath)));
		outputDataPathComboBox.Items.AddRange(Enum.GetNames(typeof(dataPath)));
	}

	public void UpdateInfoFromUserControl()
	{
		if (base.IsHandleCreated)
		{
			if (!int.TryParse(transmitTextBox.Text, out TransmitBandwidth))
			{
				TransmitBandwidth = 8000;
			}
			if (!int.TryParse(receiveTextBox.Text, out ReceiveBandwidth))
			{
				ReceiveBandwidth = 8000;
			}
			if (!int.TryParse(maxLatencyTextBox.Text, out MaxLatency))
			{
				MaxLatency = 10;
			}
			SlotMaxLatency = slotRadioButton.Checked;
			MsMaxLatency = msRadioButton.Checked;
			NoRestrans = noRetransRadioButton.Checked;
			OptimizePower = optimizePowerRadioButton.Checked;
			OptimizeQuality = optimizeQualityRadioButton.Checked;
			DontCare = dontCareRadioButton.Checked;
			ESCOHV1enable = escoHV1CheckBox.Checked;
			ESCOHV2enable = escoHV2CheckBox.Checked;
			ESCOHV3enable = escoHV3CheckBox.Checked;
			ESCOEV3enable = escoEV3CheckBox.Checked;
			ESCOEV4enable = escoEV4CheckBox.Checked;
			ESCOEV5enable = escoEV5CheckBox.Checked;
			ESCO2EV3enable = esco2EV3CheckBox.Checked;
			ESCO3EV3enable = esco3EV3CheckBox.Checked;
			ESCO2EV5enable = esco2EV5CheckBox.Checked;
			ESCO3EV5enable = esco3EV3CheckBox.Checked;
			inputDataPath = (int)Enum.Parse(typeof(dataPath), (string)inputDataPathComboBox.SelectedItem);
			outputDataPath = (int)Enum.Parse(typeof(dataPath), (string)outputDataPathComboBox.SelectedItem);
			txRxCodingFormat = enhancedVoiceSettings.TxRxCodingFormat;
			pcmSamplePayload = enhancedVoiceSettings.PcmSamplePayload;
			ioCodedDataSize = enhancedVoiceSettings.IOCodedDataSize;
			ioPcmDataFormat = enhancedVoiceSettings.IOPcmDataFormat;
			ioCodingFormat = enhancedVoiceSettings.IOCodingFormat;
		}
	}

	private void msRadioButton_CheckedChanged(object sender, EventArgs e)
	{
		if (msRadioButton.Checked)
		{
			int result = 0;
			int.TryParse(maxLatencyTextBox.Text.ToString(), out result);
			result = (int)((double)result * 0.625);
			maxLatencyTextBox.Text = result.ToString();
		}
	}

	private void slotRadioButton_CheckedChanged(object sender, EventArgs e)
	{
		if (slotRadioButton.Checked)
		{
			int result = 0;
			int.TryParse(maxLatencyTextBox.Text.ToString(), out result);
			result = (int)((double)result / 0.625);
			maxLatencyTextBox.Text = result.ToString();
		}
	}

	private void EnhancedSyncUserControl_Load(object sender, EventArgs e)
	{
		transmitTextBox.Text = TransmitBandwidth.ToString();
		receiveTextBox.Text = ReceiveBandwidth.ToString();
		maxLatencyTextBox.Text = MaxLatency.ToString();
		slotRadioButton.Checked = SlotMaxLatency;
		msRadioButton.Checked = MsMaxLatency;
		noRetransRadioButton.Checked = NoRestrans;
		optimizePowerRadioButton.Checked = OptimizePower;
		optimizeQualityRadioButton.Checked = OptimizeQuality;
		dontCareRadioButton.Checked = DontCare;
		escoHV1CheckBox.Checked = ESCOHV1enable;
		escoHV2CheckBox.Checked = ESCOHV2enable;
		escoHV3CheckBox.Checked = ESCOHV3enable;
		escoEV3CheckBox.Checked = ESCOEV3enable;
		escoEV4CheckBox.Checked = ESCOEV4enable;
		escoEV5CheckBox.Checked = ESCOEV5enable;
		esco2EV3CheckBox.Checked = ESCO2EV3enable;
		esco3EV3CheckBox.Checked = ESCO3EV3enable;
		esco2EV5CheckBox.Checked = ESCO2EV5enable;
		esco3EV5CheckBox.Checked = ESCO3EV5enable;
		inputDataPathComboBox.SelectedItem = ((dataPath)inputDataPath).ToString();
		outputDataPathComboBox.SelectedItem = ((dataPath)outputDataPath).ToString();
		enhancedVoiceSettings = new EnhancedVoiceSettings();
		enhancedVoiceSettings.TxRxCodingFormat = txRxCodingFormat;
		enhancedVoiceSettings.PcmSamplePayload = pcmSamplePayload;
		enhancedVoiceSettings.IOCodedDataSize = ioCodedDataSize;
		enhancedVoiceSettings.IOPcmDataFormat = ioPcmDataFormat;
		enhancedVoiceSettings.IOCodingFormat = ioCodingFormat;
	}

	private void enhancedVoiceSettingsButton_Click(object sender, EventArgs e)
	{
		enhancedVoiceSettings.TxRxCodingFormat = txRxCodingFormat;
		enhancedVoiceSettings.PcmSamplePayload = pcmSamplePayload;
		enhancedVoiceSettings.IOCodedDataSize = ioCodedDataSize;
		enhancedVoiceSettings.IOPcmDataFormat = ioPcmDataFormat;
		enhancedVoiceSettings.IOCodingFormat = ioCodingFormat;
		enhancedVoiceSettings.ShowDialog();
		if (enhancedVoiceSettings.DialogResult == DialogResult.OK)
		{
			txRxCodingFormat = enhancedVoiceSettings.TxRxCodingFormat;
			pcmSamplePayload = enhancedVoiceSettings.PcmSamplePayload;
			ioCodedDataSize = enhancedVoiceSettings.IOCodedDataSize;
			ioPcmDataFormat = enhancedVoiceSettings.IOPcmDataFormat;
			ioCodingFormat = enhancedVoiceSettings.IOCodingFormat;
		}
	}

	private void resetButton_Click(object sender, EventArgs e)
	{
		transmitTextBox.Text = 8000.ToString();
		receiveTextBox.Text = 8000.ToString();
		slotRadioButton.Checked = false;
		msRadioButton.Checked = true;
		maxLatencyTextBox.Text = 10.ToString();
		noRetransRadioButton.Checked = false;
		optimizePowerRadioButton.Checked = true;
		optimizeQualityRadioButton.Checked = false;
		dontCareRadioButton.Checked = false;
		escoHV1CheckBox.Checked = true;
		escoHV2CheckBox.Checked = true;
		escoHV3CheckBox.Checked = true;
		escoEV3CheckBox.Checked = true;
		escoEV4CheckBox.Checked = true;
		escoEV5CheckBox.Checked = true;
		esco2EV3CheckBox.Checked = true;
		esco3EV3CheckBox.Checked = true;
		esco2EV5CheckBox.Checked = true;
		esco3EV3CheckBox.Checked = true;
		inputDataPath = 0;
		outputDataPath = 0;
		txRxCodingFormat = 0L;
		pcmSamplePayload = 3;
		ioCodedDataSize = 0;
		ioPcmDataFormat = 0;
		ioCodingFormat = 0L;
	}

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

	private void InitializeComponent()
	{
		this.groupBox29 = new System.Windows.Forms.GroupBox();
		this.slotRadioButton = new System.Windows.Forms.RadioButton();
		this.msRadioButton = new System.Windows.Forms.RadioButton();
		this.maxLatencyTextBox = new System.Windows.Forms.TextBox();
		this.groupBox28 = new System.Windows.Forms.GroupBox();
		this.esco3EV5CheckBox = new System.Windows.Forms.CheckBox();
		this.esco3EV3CheckBox = new System.Windows.Forms.CheckBox();
		this.esco2EV5CheckBox = new System.Windows.Forms.CheckBox();
		this.esco2EV3CheckBox = new System.Windows.Forms.CheckBox();
		this.escoEV5CheckBox = new System.Windows.Forms.CheckBox();
		this.escoEV4CheckBox = new System.Windows.Forms.CheckBox();
		this.escoEV3CheckBox = new System.Windows.Forms.CheckBox();
		this.escoHV3CheckBox = new System.Windows.Forms.CheckBox();
		this.escoHV2CheckBox = new System.Windows.Forms.CheckBox();
		this.escoHV1CheckBox = new System.Windows.Forms.CheckBox();
		this.groupBox27 = new System.Windows.Forms.GroupBox();
		this.receiveTextBox = new System.Windows.Forms.TextBox();
		this.transmitTextBox = new System.Windows.Forms.TextBox();
		this.label10 = new System.Windows.Forms.Label();
		this.label11 = new System.Windows.Forms.Label();
		this.groupBox26 = new System.Windows.Forms.GroupBox();
		this.enhancedVoiceSettingsButton = new System.Windows.Forms.Button();
		this.groupBox25 = new System.Windows.Forms.GroupBox();
		this.dontCareRadioButton = new System.Windows.Forms.RadioButton();
		this.optimizeQualityRadioButton = new System.Windows.Forms.RadioButton();
		this.optimizePowerRadioButton = new System.Windows.Forms.RadioButton();
		this.noRetransRadioButton = new System.Windows.Forms.RadioButton();
		this.resetButton = new System.Windows.Forms.Button();
		this.groupBox24 = new System.Windows.Forms.GroupBox();
		this.outputDataPathComboBox = new System.Windows.Forms.ComboBox();
		this.inputDataPathComboBox = new System.Windows.Forms.ComboBox();
		this.label13 = new System.Windows.Forms.Label();
		this.label12 = new System.Windows.Forms.Label();
		this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
		this.groupBox29.SuspendLayout();
		this.groupBox28.SuspendLayout();
		this.groupBox27.SuspendLayout();
		this.groupBox26.SuspendLayout();
		this.groupBox25.SuspendLayout();
		this.groupBox24.SuspendLayout();
		this.flowLayoutPanel1.SuspendLayout();
		base.SuspendLayout();
		this.groupBox29.Controls.Add(this.slotRadioButton);
		this.groupBox29.Controls.Add(this.msRadioButton);
		this.groupBox29.Controls.Add(this.maxLatencyTextBox);
		this.groupBox29.Location = new System.Drawing.Point(3, 49);
		this.groupBox29.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3);
		this.groupBox29.Name = "groupBox29";
		this.groupBox29.Size = new System.Drawing.Size(142, 45);
		this.groupBox29.TabIndex = 1;
		this.groupBox29.TabStop = false;
		this.groupBox29.Text = "Max Latency (decimal)";
		this.slotRadioButton.AutoSize = true;
		this.slotRadioButton.Location = new System.Drawing.Point(91, 16);
		this.slotRadioButton.Name = "slotRadioButton";
		this.slotRadioButton.Size = new System.Drawing.Size(46, 17);
		this.slotRadioButton.TabIndex = 2;
		this.slotRadioButton.Text = "slots";
		this.slotRadioButton.UseVisualStyleBackColor = true;
		this.slotRadioButton.CheckedChanged += new System.EventHandler(slotRadioButton_CheckedChanged);
		this.msRadioButton.AutoSize = true;
		this.msRadioButton.Checked = true;
		this.msRadioButton.Location = new System.Drawing.Point(47, 16);
		this.msRadioButton.Name = "msRadioButton";
		this.msRadioButton.Size = new System.Drawing.Size(38, 17);
		this.msRadioButton.TabIndex = 1;
		this.msRadioButton.TabStop = true;
		this.msRadioButton.Text = "ms";
		this.msRadioButton.UseVisualStyleBackColor = true;
		this.msRadioButton.CheckedChanged += new System.EventHandler(msRadioButton_CheckedChanged);
		this.maxLatencyTextBox.Location = new System.Drawing.Point(6, 16);
		this.maxLatencyTextBox.Name = "maxLatencyTextBox";
		this.maxLatencyTextBox.Size = new System.Drawing.Size(34, 20);
		this.maxLatencyTextBox.TabIndex = 0;
		this.groupBox28.Controls.Add(this.esco3EV5CheckBox);
		this.groupBox28.Controls.Add(this.esco3EV3CheckBox);
		this.groupBox28.Controls.Add(this.esco2EV5CheckBox);
		this.groupBox28.Controls.Add(this.esco2EV3CheckBox);
		this.groupBox28.Controls.Add(this.escoEV5CheckBox);
		this.groupBox28.Controls.Add(this.escoEV4CheckBox);
		this.groupBox28.Controls.Add(this.escoEV3CheckBox);
		this.groupBox28.Controls.Add(this.escoHV3CheckBox);
		this.groupBox28.Controls.Add(this.escoHV2CheckBox);
		this.groupBox28.Controls.Add(this.escoHV1CheckBox);
		this.groupBox28.Location = new System.Drawing.Point(3, 165);
		this.groupBox28.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3);
		this.groupBox28.Name = "groupBox28";
		this.groupBox28.Size = new System.Drawing.Size(293, 70);
		this.groupBox28.TabIndex = 4;
		this.groupBox28.TabStop = false;
		this.groupBox28.Text = "Packet Type";
		this.esco3EV5CheckBox.AutoSize = true;
		this.esco3EV5CheckBox.Checked = true;
		this.esco3EV5CheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.esco3EV5CheckBox.Location = new System.Drawing.Point(238, 41);
		this.esco3EV5CheckBox.Name = "esco3EV5CheckBox";
		this.esco3EV5CheckBox.Size = new System.Drawing.Size(55, 17);
		this.esco3EV5CheckBox.TabIndex = 9;
		this.esco3EV5CheckBox.Text = "3-EV5";
		this.esco3EV5CheckBox.UseVisualStyleBackColor = true;
		this.esco3EV3CheckBox.AutoSize = true;
		this.esco3EV3CheckBox.Checked = true;
		this.esco3EV3CheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.esco3EV3CheckBox.Location = new System.Drawing.Point(116, 41);
		this.esco3EV3CheckBox.Name = "esco3EV3CheckBox";
		this.esco3EV3CheckBox.Size = new System.Drawing.Size(55, 17);
		this.esco3EV3CheckBox.TabIndex = 7;
		this.esco3EV3CheckBox.Text = "3-EV3";
		this.esco3EV3CheckBox.UseVisualStyleBackColor = true;
		this.esco2EV5CheckBox.AutoSize = true;
		this.esco2EV5CheckBox.Checked = true;
		this.esco2EV5CheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.esco2EV5CheckBox.Location = new System.Drawing.Point(177, 41);
		this.esco2EV5CheckBox.Name = "esco2EV5CheckBox";
		this.esco2EV5CheckBox.Size = new System.Drawing.Size(55, 17);
		this.esco2EV5CheckBox.TabIndex = 8;
		this.esco2EV5CheckBox.Text = "2-EV5";
		this.esco2EV5CheckBox.UseVisualStyleBackColor = true;
		this.esco2EV3CheckBox.AutoSize = true;
		this.esco2EV3CheckBox.Checked = true;
		this.esco2EV3CheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.esco2EV3CheckBox.Location = new System.Drawing.Point(55, 41);
		this.esco2EV3CheckBox.Name = "esco2EV3CheckBox";
		this.esco2EV3CheckBox.Size = new System.Drawing.Size(55, 17);
		this.esco2EV3CheckBox.TabIndex = 6;
		this.esco2EV3CheckBox.Text = "2-EV3";
		this.esco2EV3CheckBox.UseVisualStyleBackColor = true;
		this.escoEV5CheckBox.AutoSize = true;
		this.escoEV5CheckBox.Checked = true;
		this.escoEV5CheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.escoEV5CheckBox.Location = new System.Drawing.Point(5, 41);
		this.escoEV5CheckBox.Name = "escoEV5CheckBox";
		this.escoEV5CheckBox.Size = new System.Drawing.Size(46, 17);
		this.escoEV5CheckBox.TabIndex = 5;
		this.escoEV5CheckBox.Text = "EV5";
		this.escoEV5CheckBox.UseVisualStyleBackColor = true;
		this.escoEV4CheckBox.AutoSize = true;
		this.escoEV4CheckBox.Checked = true;
		this.escoEV4CheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.escoEV4CheckBox.Location = new System.Drawing.Point(238, 19);
		this.escoEV4CheckBox.Name = "escoEV4CheckBox";
		this.escoEV4CheckBox.Size = new System.Drawing.Size(46, 17);
		this.escoEV4CheckBox.TabIndex = 4;
		this.escoEV4CheckBox.Text = "EV4";
		this.escoEV4CheckBox.UseVisualStyleBackColor = true;
		this.escoEV3CheckBox.AutoSize = true;
		this.escoEV3CheckBox.Checked = true;
		this.escoEV3CheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.escoEV3CheckBox.Location = new System.Drawing.Point(177, 19);
		this.escoEV3CheckBox.Name = "escoEV3CheckBox";
		this.escoEV3CheckBox.Size = new System.Drawing.Size(46, 17);
		this.escoEV3CheckBox.TabIndex = 3;
		this.escoEV3CheckBox.Text = "EV3";
		this.escoEV3CheckBox.UseVisualStyleBackColor = true;
		this.escoHV3CheckBox.AutoSize = true;
		this.escoHV3CheckBox.Checked = true;
		this.escoHV3CheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.escoHV3CheckBox.Location = new System.Drawing.Point(116, 19);
		this.escoHV3CheckBox.Name = "escoHV3CheckBox";
		this.escoHV3CheckBox.Size = new System.Drawing.Size(47, 17);
		this.escoHV3CheckBox.TabIndex = 2;
		this.escoHV3CheckBox.Text = "HV3";
		this.escoHV3CheckBox.UseVisualStyleBackColor = true;
		this.escoHV2CheckBox.AutoSize = true;
		this.escoHV2CheckBox.Checked = true;
		this.escoHV2CheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.escoHV2CheckBox.Location = new System.Drawing.Point(55, 19);
		this.escoHV2CheckBox.Name = "escoHV2CheckBox";
		this.escoHV2CheckBox.Size = new System.Drawing.Size(47, 17);
		this.escoHV2CheckBox.TabIndex = 1;
		this.escoHV2CheckBox.Text = "HV2";
		this.escoHV2CheckBox.UseVisualStyleBackColor = true;
		this.escoHV1CheckBox.AutoSize = true;
		this.escoHV1CheckBox.Checked = true;
		this.escoHV1CheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
		this.escoHV1CheckBox.Location = new System.Drawing.Point(5, 19);
		this.escoHV1CheckBox.Name = "escoHV1CheckBox";
		this.escoHV1CheckBox.Size = new System.Drawing.Size(47, 17);
		this.escoHV1CheckBox.TabIndex = 0;
		this.escoHV1CheckBox.Text = "HV1";
		this.escoHV1CheckBox.UseVisualStyleBackColor = true;
		this.groupBox27.Controls.Add(this.receiveTextBox);
		this.groupBox27.Controls.Add(this.transmitTextBox);
		this.groupBox27.Controls.Add(this.label10);
		this.groupBox27.Controls.Add(this.label11);
		this.groupBox27.Location = new System.Drawing.Point(3, 3);
		this.groupBox27.Name = "groupBox27";
		this.groupBox27.Size = new System.Drawing.Size(293, 43);
		this.groupBox27.TabIndex = 0;
		this.groupBox27.TabStop = false;
		this.groupBox27.Text = "Bandwidth in Bytes/Second (decimal values)";
		this.receiveTextBox.Location = new System.Drawing.Point(194, 15);
		this.receiveTextBox.Name = "receiveTextBox";
		this.receiveTextBox.Size = new System.Drawing.Size(90, 20);
		this.receiveTextBox.TabIndex = 3;
		this.transmitTextBox.Location = new System.Drawing.Point(55, 15);
		this.transmitTextBox.Name = "transmitTextBox";
		this.transmitTextBox.Size = new System.Drawing.Size(82, 20);
		this.transmitTextBox.TabIndex = 2;
		this.label10.AutoSize = true;
		this.label10.Location = new System.Drawing.Point(143, 18);
		this.label10.Name = "label10";
		this.label10.Size = new System.Drawing.Size(47, 13);
		this.label10.TabIndex = 1;
		this.label10.Text = "Receive";
		this.label11.AutoSize = true;
		this.label11.Location = new System.Drawing.Point(4, 18);
		this.label11.Name = "label11";
		this.label11.Size = new System.Drawing.Size(47, 13);
		this.label11.TabIndex = 0;
		this.label11.Text = "Transmit";
		this.groupBox26.Controls.Add(this.enhancedVoiceSettingsButton);
		this.groupBox26.Location = new System.Drawing.Point(151, 49);
		this.groupBox26.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3);
		this.groupBox26.Name = "groupBox26";
		this.groupBox26.Size = new System.Drawing.Size(145, 45);
		this.groupBox26.TabIndex = 2;
		this.groupBox26.TabStop = false;
		this.groupBox26.Text = "Enhanced Voice Settings";
		this.enhancedVoiceSettingsButton.Location = new System.Drawing.Point(7, 14);
		this.enhancedVoiceSettingsButton.Name = "enhancedVoiceSettingsButton";
		this.enhancedVoiceSettingsButton.Size = new System.Drawing.Size(128, 23);
		this.enhancedVoiceSettingsButton.TabIndex = 0;
		this.enhancedVoiceSettingsButton.Text = "Edit";
		this.enhancedVoiceSettingsButton.UseVisualStyleBackColor = true;
		this.enhancedVoiceSettingsButton.Click += new System.EventHandler(enhancedVoiceSettingsButton_Click);
		this.groupBox25.Controls.Add(this.dontCareRadioButton);
		this.groupBox25.Controls.Add(this.optimizeQualityRadioButton);
		this.groupBox25.Controls.Add(this.optimizePowerRadioButton);
		this.groupBox25.Controls.Add(this.noRetransRadioButton);
		this.groupBox25.Location = new System.Drawing.Point(3, 97);
		this.groupBox25.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3);
		this.groupBox25.Name = "groupBox25";
		this.groupBox25.Size = new System.Drawing.Size(293, 65);
		this.groupBox25.TabIndex = 3;
		this.groupBox25.TabStop = false;
		this.groupBox25.Text = "Retransmission Effort";
		this.dontCareRadioButton.AutoSize = true;
		this.dontCareRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8f);
		this.dontCareRadioButton.Location = new System.Drawing.Point(164, 39);
		this.dontCareRadioButton.Name = "dontCareRadioButton";
		this.dontCareRadioButton.Size = new System.Drawing.Size(73, 17);
		this.dontCareRadioButton.TabIndex = 3;
		this.dontCareRadioButton.Text = "Dont Care";
		this.dontCareRadioButton.UseVisualStyleBackColor = true;
		this.optimizeQualityRadioButton.AutoSize = true;
		this.optimizeQualityRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8f);
		this.optimizeQualityRadioButton.Location = new System.Drawing.Point(23, 39);
		this.optimizeQualityRadioButton.Name = "optimizeQualityRadioButton";
		this.optimizeQualityRadioButton.Size = new System.Drawing.Size(100, 17);
		this.optimizeQualityRadioButton.TabIndex = 2;
		this.optimizeQualityRadioButton.Text = "Optimize Quality";
		this.optimizeQualityRadioButton.UseVisualStyleBackColor = true;
		this.optimizePowerRadioButton.AutoSize = true;
		this.optimizePowerRadioButton.Checked = true;
		this.optimizePowerRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8f);
		this.optimizePowerRadioButton.Location = new System.Drawing.Point(164, 15);
		this.optimizePowerRadioButton.Name = "optimizePowerRadioButton";
		this.optimizePowerRadioButton.Size = new System.Drawing.Size(98, 17);
		this.optimizePowerRadioButton.TabIndex = 1;
		this.optimizePowerRadioButton.TabStop = true;
		this.optimizePowerRadioButton.Text = "Optimize Power";
		this.optimizePowerRadioButton.UseVisualStyleBackColor = true;
		this.noRetransRadioButton.AutoSize = true;
		this.noRetransRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
		this.noRetransRadioButton.Location = new System.Drawing.Point(23, 15);
		this.noRetransRadioButton.Name = "noRetransRadioButton";
		this.noRetransRadioButton.Size = new System.Drawing.Size(79, 17);
		this.noRetransRadioButton.TabIndex = 0;
		this.noRetransRadioButton.Text = "No Retrans";
		this.noRetransRadioButton.UseVisualStyleBackColor = true;
		this.resetButton.Location = new System.Drawing.Point(3, 288);
		this.resetButton.Name = "resetButton";
		this.resetButton.Size = new System.Drawing.Size(98, 23);
		this.resetButton.TabIndex = 5;
		this.resetButton.Text = "Reset Settings";
		this.resetButton.UseVisualStyleBackColor = true;
		this.resetButton.Click += new System.EventHandler(resetButton_Click);
		this.groupBox24.Controls.Add(this.outputDataPathComboBox);
		this.groupBox24.Controls.Add(this.inputDataPathComboBox);
		this.groupBox24.Controls.Add(this.label13);
		this.groupBox24.Controls.Add(this.label12);
		this.groupBox24.Location = new System.Drawing.Point(3, 238);
		this.groupBox24.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3);
		this.groupBox24.Name = "groupBox24";
		this.groupBox24.Size = new System.Drawing.Size(294, 44);
		this.groupBox24.TabIndex = 6;
		this.groupBox24.TabStop = false;
		this.groupBox24.Text = "Data Path";
		this.outputDataPathComboBox.FormattingEnabled = true;
		this.outputDataPathComboBox.Location = new System.Drawing.Point(184, 17);
		this.outputDataPathComboBox.Name = "outputDataPathComboBox";
		this.outputDataPathComboBox.Size = new System.Drawing.Size(105, 21);
		this.outputDataPathComboBox.TabIndex = 3;
		this.inputDataPathComboBox.FormattingEnabled = true;
		this.inputDataPathComboBox.Location = new System.Drawing.Point(35, 17);
		this.inputDataPathComboBox.Name = "inputDataPathComboBox";
		this.inputDataPathComboBox.Size = new System.Drawing.Size(105, 21);
		this.inputDataPathComboBox.TabIndex = 2;
		this.label13.AutoSize = true;
		this.label13.Location = new System.Drawing.Point(144, 20);
		this.label13.Name = "label13";
		this.label13.Size = new System.Drawing.Size(39, 13);
		this.label13.TabIndex = 1;
		this.label13.Text = "Output";
		this.label12.AutoSize = true;
		this.label12.Location = new System.Drawing.Point(3, 20);
		this.label12.Name = "label12";
		this.label12.Size = new System.Drawing.Size(31, 13);
		this.label12.TabIndex = 0;
		this.label12.Text = "Input";
		this.flowLayoutPanel1.Controls.Add(this.groupBox27);
		this.flowLayoutPanel1.Controls.Add(this.groupBox29);
		this.flowLayoutPanel1.Controls.Add(this.groupBox26);
		this.flowLayoutPanel1.Controls.Add(this.groupBox25);
		this.flowLayoutPanel1.Controls.Add(this.groupBox28);
		this.flowLayoutPanel1.Controls.Add(this.groupBox24);
		this.flowLayoutPanel1.Controls.Add(this.resetButton);
		this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
		this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0);
		this.flowLayoutPanel1.Name = "flowLayoutPanel1";
		this.flowLayoutPanel1.Size = new System.Drawing.Size(300, 320);
		this.flowLayoutPanel1.TabIndex = 9;
		base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.Controls.Add(this.flowLayoutPanel1);
		base.Name = "EnhancedSynchronousConnectionUserControl";
		base.Size = new System.Drawing.Size(300, 320);
		base.Load += new System.EventHandler(EnhancedSyncUserControl_Load);
		this.groupBox29.ResumeLayout(false);
		this.groupBox29.PerformLayout();
		this.groupBox28.ResumeLayout(false);
		this.groupBox28.PerformLayout();
		this.groupBox27.ResumeLayout(false);
		this.groupBox27.PerformLayout();
		this.groupBox26.ResumeLayout(false);
		this.groupBox25.ResumeLayout(false);
		this.groupBox25.PerformLayout();
		this.groupBox24.ResumeLayout(false);
		this.groupBox24.PerformLayout();
		this.flowLayoutPanel1.ResumeLayout(false);
		base.ResumeLayout(false);
	}
}
