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

namespace QCRPG.TSL.BT;

public class ESCOParameters : Form
{
	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 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 string VoiceSetting = "0060";

	private int TransmitBandwidth_enhSync = 8000;

	private int ReceiveBandwidth_enhSync = 8000;

	private int MaxLatency_enhSync = 10;

	private bool MsMaxLatency_enhSync = true;

	private bool SlotMaxLatency_enhSync;

	private bool NoRestrans_enhSync;

	private bool OptimizePower_enhSync = true;

	private bool OptimizeQuality_enhSync;

	private bool DontCare_enhSync;

	private bool ESCOHV1enable_enhSync = true;

	private bool ESCOHV2enable_enhSync = true;

	private bool ESCOHV3enable_enhSync = true;

	private bool ESCOEV3enable_enhSync = true;

	private bool ESCOEV4enable_enhSync = true;

	private bool ESCOEV5enable_enhSync = true;

	private bool ESCO2EV3enable_enhSync = true;

	private bool ESCO3EV3enable_enhSync = true;

	private bool ESCO2EV5enable_enhSync = true;

	private bool ESCO3EV5enable_enhSync = true;

	private int inputDataPath;

	private int outputDataPath;

	private bool AirCodingCVSDEnable = true;

	private bool AirCodingULawEnable;

	private bool AirCodingALawEnable;

	private bool AirCodingTransparentDataEnable;

	private int LinearPCMBitPosition = 3;

	private bool SampleSize8BitEnable = true;

	private bool SampleSize16BitEnable;

	private bool InputData1ComplEnable;

	private bool InputData2ComplEnable = true;

	private bool InputDataSignMagnitudeEnable;

	private bool InputDataUnsignedEnable;

	private bool InputCodingLinearEnable;

	private bool InputCodingALawEnable = true;

	private bool InputCodingULawEnable;

	private bool InputCodingCVSDEnable;

	private bool AudioSourceCodecEnable = true;

	private bool AudioSourceHCIEnable;

	private long txRxCodingFormat;

	private int pcmSamplePayload = 3;

	private int ioCodedDataSize;

	private int ioPcmDataFormat = 3;

	private long ioCodingFormat;

	private ESCOUserControl escoUserControl = new ESCOUserControl();

	private EnhancedSynchronousConnectionUserControl enhancedSynchronousConnectionUserControl = new EnhancedSynchronousConnectionUserControl();

	private IContainer components;

	private Button okButton;

	private Button cancelButton;

	private Panel eSCOEnhancedPanel;

	private GroupBox groupBox23;

	private RadioButton enhSyncRadioButton;

	private RadioButton eScoRadioButton;

	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 string voiceSetting
	{
		get
		{
			return VoiceSetting;
		}
		set
		{
			VoiceSetting = value;
		}
	}

	public int transmitBandwidth_enhSync
	{
		get
		{
			return TransmitBandwidth_enhSync;
		}
		set
		{
			TransmitBandwidth_enhSync = value;
		}
	}

	public int receiveBandwidth_enhSync
	{
		get
		{
			return ReceiveBandwidth_enhSync;
		}
		set
		{
			ReceiveBandwidth_enhSync = value;
		}
	}

	public int maxLatency_enhSync
	{
		get
		{
			return MaxLatency_enhSync;
		}
		set
		{
			MaxLatency_enhSync = value;
		}
	}

	public bool msMaxLatency_enhSync
	{
		get
		{
			return MsMaxLatency_enhSync;
		}
		set
		{
			MsMaxLatency_enhSync = value;
		}
	}

	public bool slotMaxLatency_enhSync
	{
		get
		{
			return SlotMaxLatency_enhSync;
		}
		set
		{
			SlotMaxLatency_enhSync = value;
		}
	}

	public bool noRestrans_enhSync
	{
		get
		{
			return NoRestrans_enhSync;
		}
		set
		{
			NoRestrans_enhSync = value;
		}
	}

	public bool optimizePower_enhSync
	{
		get
		{
			return OptimizePower_enhSync;
		}
		set
		{
			OptimizePower_enhSync = value;
		}
	}

	public bool optimizeQuality_enhSync
	{
		get
		{
			return OptimizeQuality_enhSync;
		}
		set
		{
			OptimizeQuality_enhSync = value;
		}
	}

	public bool dontCare_enhSync
	{
		get
		{
			return DontCare_enhSync;
		}
		set
		{
			DontCare_enhSync = value;
		}
	}

	public bool escoHV1enable_enhSync
	{
		get
		{
			return ESCOHV1enable_enhSync;
		}
		set
		{
			ESCOHV1enable_enhSync = value;
		}
	}

	public bool escoHV2enable_enhSync
	{
		get
		{
			return ESCOHV2enable_enhSync;
		}
		set
		{
			ESCOHV2enable_enhSync = value;
		}
	}

	public bool escoHV3enable_enhSync
	{
		get
		{
			return ESCOHV3enable_enhSync;
		}
		set
		{
			ESCOHV3enable_enhSync = value;
		}
	}

	public bool escoEV3enable_enhSync
	{
		get
		{
			return ESCOEV3enable_enhSync;
		}
		set
		{
			ESCOEV3enable_enhSync = value;
		}
	}

	public bool escoEV4enable_enhSync
	{
		get
		{
			return ESCOEV4enable_enhSync;
		}
		set
		{
			ESCOEV4enable_enhSync = value;
		}
	}

	public bool escoEV5enable_enhSync
	{
		get
		{
			return ESCOEV5enable_enhSync;
		}
		set
		{
			ESCOEV5enable_enhSync = value;
		}
	}

	public bool esco2EV3enable_enhSync
	{
		get
		{
			return ESCO2EV3enable_enhSync;
		}
		set
		{
			ESCO2EV3enable_enhSync = value;
		}
	}

	public bool esco3EV3enable_enhSync
	{
		get
		{
			return ESCO3EV3enable_enhSync;
		}
		set
		{
			ESCO3EV3enable_enhSync = value;
		}
	}

	public bool esco2EV5enable_enhSync
	{
		get
		{
			return ESCO2EV5enable_enhSync;
		}
		set
		{
			ESCO2EV5enable_enhSync = value;
		}
	}

	public bool esco3EV5enable_enhSync
	{
		get
		{
			return ESCO3EV5enable_enhSync;
		}
		set
		{
			ESCO3EV5enable_enhSync = value;
		}
	}

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

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

	public bool airCodingCVSDEnable
	{
		get
		{
			return AirCodingCVSDEnable;
		}
		set
		{
			AirCodingCVSDEnable = value;
		}
	}

	public bool airCodingULawEnable
	{
		get
		{
			return AirCodingULawEnable;
		}
		set
		{
			AirCodingULawEnable = value;
		}
	}

	public bool airCodingALawEnable
	{
		get
		{
			return AirCodingALawEnable;
		}
		set
		{
			AirCodingALawEnable = value;
		}
	}

	public bool airCodingTransparentDataEnable
	{
		get
		{
			return AirCodingTransparentDataEnable;
		}
		set
		{
			AirCodingTransparentDataEnable = value;
		}
	}

	public int linearPCMBitPosition
	{
		get
		{
			return LinearPCMBitPosition;
		}
		set
		{
			LinearPCMBitPosition = value;
		}
	}

	public bool sampleSize8BitEnable
	{
		get
		{
			return SampleSize8BitEnable;
		}
		set
		{
			SampleSize8BitEnable = value;
		}
	}

	public bool sampleSize16BitEnable
	{
		get
		{
			return SampleSize16BitEnable;
		}
		set
		{
			SampleSize16BitEnable = value;
		}
	}

	public bool inputData1ComplEnable
	{
		get
		{
			return InputData1ComplEnable;
		}
		set
		{
			InputData1ComplEnable = value;
		}
	}

	public bool inputData2ComplEnable
	{
		get
		{
			return InputData2ComplEnable;
		}
		set
		{
			InputData2ComplEnable = value;
		}
	}

	public bool inputDataSignMagnitudeEnable
	{
		get
		{
			return InputDataSignMagnitudeEnable;
		}
		set
		{
			InputDataSignMagnitudeEnable = value;
		}
	}

	public bool inputDataUnsignedEnable
	{
		get
		{
			return InputDataUnsignedEnable;
		}
		set
		{
			InputDataUnsignedEnable = value;
		}
	}

	public bool inputCodingLinearEnable
	{
		get
		{
			return InputCodingLinearEnable;
		}
		set
		{
			InputCodingLinearEnable = value;
		}
	}

	public bool inputCodingALawEnable
	{
		get
		{
			return InputCodingALawEnable;
		}
		set
		{
			InputCodingALawEnable = value;
		}
	}

	public bool inputCodingULawEnable
	{
		get
		{
			return InputCodingULawEnable;
		}
		set
		{
			InputCodingULawEnable = value;
		}
	}

	public bool inputCodingCVSDEnable
	{
		get
		{
			return InputCodingCVSDEnable;
		}
		set
		{
			InputCodingCVSDEnable = value;
		}
	}

	public bool audioSourceCodecEnable
	{
		get
		{
			return AudioSourceCodecEnable;
		}
		set
		{
			AudioSourceCodecEnable = value;
		}
	}

	public bool audioSourceHCIEnable
	{
		get
		{
			return AudioSourceHCIEnable;
		}
		set
		{
			AudioSourceHCIEnable = 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 bool EnhancedSync
	{
		get
		{
			return enhSyncRadioButton.Checked;
		}
		set
		{
			eScoRadioButton.Checked = !value;
			enhSyncRadioButton.Checked = value;
		}
	}

	public ESCOParameters()
	{
		InitializeComponent();
	}

	private void ESCOParameters_Load(object sender, EventArgs e)
	{
		updateEscoUserControl(null, null);
		escoUserControl.transmitBandwidth = TransmitBandwidth;
		escoUserControl.receiveBandwidth = ReceiveBandwidth;
		escoUserControl.maxLatency = MaxLatency;
		escoUserControl.msMaxLatency = MsMaxLatency;
		escoUserControl.slotMaxLatency = SlotMaxLatency;
		escoUserControl.voiceSetting = VoiceSetting;
		escoUserControl.noRestrans = NoRestrans;
		escoUserControl.optimizePower = OptimizePower;
		escoUserControl.optimizeQuality = OptimizeQuality;
		escoUserControl.dontCare = DontCare;
		escoUserControl.escoHV1enable = ESCOHV1enable;
		escoUserControl.escoHV2enable = ESCOHV2enable;
		escoUserControl.escoHV3enable = ESCOHV3enable;
		escoUserControl.escoEV3enable = ESCOEV3enable;
		escoUserControl.escoEV4enable = ESCOEV4enable;
		escoUserControl.escoEV5enable = ESCOEV5enable;
		escoUserControl.esco2EV3enable = ESCO2EV3enable;
		escoUserControl.esco3EV3enable = ESCO3EV3enable;
		escoUserControl.esco2EV5enable = ESCO2EV5enable;
		escoUserControl.esco3EV5enable = ESCO3EV5enable;
		enhancedSynchronousConnectionUserControl.transmitBandwidth = TransmitBandwidth_enhSync;
		enhancedSynchronousConnectionUserControl.receiveBandwidth = ReceiveBandwidth_enhSync;
		enhancedSynchronousConnectionUserControl.maxLatency = MaxLatency_enhSync;
		enhancedSynchronousConnectionUserControl.msMaxLatency = MsMaxLatency_enhSync;
		enhancedSynchronousConnectionUserControl.slotMaxLatency = SlotMaxLatency_enhSync;
		enhancedSynchronousConnectionUserControl.noRestrans = NoRestrans_enhSync;
		enhancedSynchronousConnectionUserControl.optimizePower = OptimizePower_enhSync;
		enhancedSynchronousConnectionUserControl.optimizeQuality = OptimizeQuality_enhSync;
		enhancedSynchronousConnectionUserControl.dontCare = DontCare_enhSync;
		enhancedSynchronousConnectionUserControl.escoHV1enable = ESCOHV1enable_enhSync;
		enhancedSynchronousConnectionUserControl.escoHV2enable = ESCOHV2enable_enhSync;
		enhancedSynchronousConnectionUserControl.escoHV3enable = ESCOHV3enable_enhSync;
		enhancedSynchronousConnectionUserControl.escoEV3enable = ESCOEV3enable_enhSync;
		enhancedSynchronousConnectionUserControl.escoEV4enable = ESCOEV4enable_enhSync;
		enhancedSynchronousConnectionUserControl.escoEV5enable = ESCOEV5enable_enhSync;
		enhancedSynchronousConnectionUserControl.esco2EV3enable = ESCO2EV3enable_enhSync;
		enhancedSynchronousConnectionUserControl.esco3EV3enable = ESCO3EV3enable_enhSync;
		enhancedSynchronousConnectionUserControl.esco2EV5enable = ESCO2EV5enable_enhSync;
		enhancedSynchronousConnectionUserControl.esco3EV5enable = ESCO3EV5enable_enhSync;
		enhancedSynchronousConnectionUserControl.InputDataPath = InputDataPath;
		enhancedSynchronousConnectionUserControl.OutputDataPath = OutputDataPath;
		enhancedSynchronousConnectionUserControl.TxRxCodingFormat = TxRxCodingFormat;
		enhancedSynchronousConnectionUserControl.PcmSamplePayload = PcmSamplePayload;
		enhancedSynchronousConnectionUserControl.IOCodedDataSize = IOCodedDataSize;
		enhancedSynchronousConnectionUserControl.IOPcmDataFormat = IOPcmDataFormat;
		enhancedSynchronousConnectionUserControl.IOCodingFormat = IOCodingFormat;
	}

	private int CalculateVoiceSettingForESCOConnection()
	{
		int num = 0;
		if (InputCodingLinearEnable)
		{
			num = num;
		}
		if (InputCodingULawEnable)
		{
			num += 256;
		}
		if (InputCodingALawEnable)
		{
			num += 512;
		}
		if (InputCodingCVSDEnable)
		{
			num += 768;
		}
		if (InputData1ComplEnable)
		{
			num = num;
		}
		if (InputData2ComplEnable)
		{
			num += 64;
		}
		if (InputDataSignMagnitudeEnable)
		{
			num += 128;
		}
		if (InputDataUnsignedEnable)
		{
			num += 192;
		}
		if (SampleSize8BitEnable)
		{
			num = num;
		}
		if (SampleSize16BitEnable)
		{
			num += 32;
		}
		if (AirCodingCVSDEnable)
		{
			num = num;
		}
		if (AirCodingULawEnable)
		{
			num++;
		}
		if (AirCodingALawEnable)
		{
			num += 2;
		}
		if (AirCodingTransparentDataEnable)
		{
			num += 3;
		}
		if (AudioSourceCodecEnable)
		{
			num = num;
		}
		if (AudioSourceHCIEnable)
		{
			num += 32768;
		}
		return num + (LinearPCMBitPosition << 2);
	}

	private void okButton_Click(object sender, EventArgs e)
	{
		escoUserControl.UpdateInfoFromUserControl();
		enhancedSynchronousConnectionUserControl.UpdateInfoFromUserControl();
		TransmitBandwidth = escoUserControl.transmitBandwidth;
		ReceiveBandwidth = escoUserControl.receiveBandwidth;
		MaxLatency = escoUserControl.maxLatency;
		MsMaxLatency = escoUserControl.msMaxLatency;
		SlotMaxLatency = escoUserControl.slotMaxLatency;
		VoiceSetting = escoUserControl.voiceSetting;
		NoRestrans = escoUserControl.noRestrans;
		OptimizePower = escoUserControl.optimizePower;
		OptimizeQuality = escoUserControl.optimizeQuality;
		DontCare = escoUserControl.dontCare;
		ESCOHV1enable = escoUserControl.escoHV1enable;
		ESCOHV2enable = escoUserControl.escoHV2enable;
		ESCOHV3enable = escoUserControl.escoHV3enable;
		ESCOEV3enable = escoUserControl.escoEV3enable;
		ESCOEV4enable = escoUserControl.escoEV4enable;
		ESCOEV5enable = escoUserControl.escoEV5enable;
		ESCO2EV3enable = escoUserControl.esco2EV3enable;
		ESCO3EV3enable = escoUserControl.esco3EV3enable;
		ESCO2EV5enable = escoUserControl.esco2EV5enable;
		ESCO3EV5enable = escoUserControl.esco3EV5enable;
		AirCodingCVSDEnable = escoUserControl.airCodingCVSDEnable;
		AirCodingULawEnable = escoUserControl.airCodingULawEnable;
		AirCodingALawEnable = escoUserControl.airCodingALawEnable;
		AirCodingTransparentDataEnable = escoUserControl.airCodingTransparentDataEnable;
		LinearPCMBitPosition = escoUserControl.linearPCMBitPosition;
		SampleSize8BitEnable = escoUserControl.sampleSize8BitEnable;
		SampleSize16BitEnable = escoUserControl.sampleSize16BitEnable;
		InputData1ComplEnable = escoUserControl.inputData1ComplEnable;
		InputData2ComplEnable = escoUserControl.inputData2ComplEnable;
		InputDataSignMagnitudeEnable = escoUserControl.inputDataSignMagnitudeEnable;
		InputDataUnsignedEnable = escoUserControl.inputDataUnsignedEnable;
		InputCodingLinearEnable = escoUserControl.inputCodingLinearEnable;
		InputCodingALawEnable = escoUserControl.inputCodingALawEnable;
		InputCodingULawEnable = escoUserControl.inputCodingULawEnable;
		InputCodingCVSDEnable = escoUserControl.inputCodingCVSDEnable;
		AudioSourceCodecEnable = escoUserControl.audioSourceCodecEnable;
		AudioSourceHCIEnable = escoUserControl.audioSourceHCIEnable;
		TransmitBandwidth_enhSync = enhancedSynchronousConnectionUserControl.transmitBandwidth;
		ReceiveBandwidth_enhSync = enhancedSynchronousConnectionUserControl.receiveBandwidth;
		MaxLatency_enhSync = enhancedSynchronousConnectionUserControl.maxLatency;
		MsMaxLatency_enhSync = enhancedSynchronousConnectionUserControl.msMaxLatency;
		SlotMaxLatency_enhSync = enhancedSynchronousConnectionUserControl.slotMaxLatency;
		NoRestrans_enhSync = enhancedSynchronousConnectionUserControl.noRestrans;
		OptimizePower_enhSync = enhancedSynchronousConnectionUserControl.optimizePower;
		OptimizeQuality_enhSync = enhancedSynchronousConnectionUserControl.optimizeQuality;
		DontCare_enhSync = enhancedSynchronousConnectionUserControl.dontCare;
		ESCOHV1enable_enhSync = enhancedSynchronousConnectionUserControl.escoHV1enable;
		ESCOHV2enable_enhSync = enhancedSynchronousConnectionUserControl.escoHV2enable;
		ESCOHV3enable_enhSync = enhancedSynchronousConnectionUserControl.escoHV3enable;
		ESCOEV3enable_enhSync = enhancedSynchronousConnectionUserControl.escoEV3enable;
		ESCOEV4enable_enhSync = enhancedSynchronousConnectionUserControl.escoEV4enable;
		ESCOEV5enable_enhSync = enhancedSynchronousConnectionUserControl.escoEV5enable;
		ESCO2EV3enable_enhSync = enhancedSynchronousConnectionUserControl.esco2EV3enable;
		ESCO3EV3enable_enhSync = enhancedSynchronousConnectionUserControl.esco3EV3enable;
		ESCO2EV5enable_enhSync = enhancedSynchronousConnectionUserControl.esco2EV5enable;
		ESCO3EV5enable_enhSync = enhancedSynchronousConnectionUserControl.esco3EV5enable;
		inputDataPath = enhancedSynchronousConnectionUserControl.InputDataPath;
		outputDataPath = enhancedSynchronousConnectionUserControl.OutputDataPath;
		TxRxCodingFormat = enhancedSynchronousConnectionUserControl.TxRxCodingFormat;
		PcmSamplePayload = enhancedSynchronousConnectionUserControl.PcmSamplePayload;
		IOCodedDataSize = enhancedSynchronousConnectionUserControl.IOCodedDataSize;
		IOPcmDataFormat = enhancedSynchronousConnectionUserControl.IOPcmDataFormat;
		IOCodingFormat = enhancedSynchronousConnectionUserControl.IOCodingFormat;
	}

	private void updateEscoUserControl(object sender, EventArgs e)
	{
		eSCOEnhancedPanel.Controls.Clear();
		if (eScoRadioButton.Checked)
		{
			eSCOEnhancedPanel.Controls.Add(escoUserControl);
		}
		else if (enhSyncRadioButton.Checked)
		{
			eSCOEnhancedPanel.Controls.Add(enhancedSynchronousConnectionUserControl);
		}
	}

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

	private void InitializeComponent()
	{
		this.okButton = new System.Windows.Forms.Button();
		this.cancelButton = new System.Windows.Forms.Button();
		this.eSCOEnhancedPanel = new System.Windows.Forms.Panel();
		this.groupBox23 = new System.Windows.Forms.GroupBox();
		this.enhSyncRadioButton = new System.Windows.Forms.RadioButton();
		this.eScoRadioButton = new System.Windows.Forms.RadioButton();
		this.groupBox23.SuspendLayout();
		base.SuspendLayout();
		this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
		this.okButton.Location = new System.Drawing.Point(47, 376);
		this.okButton.Name = "okButton";
		this.okButton.Size = new System.Drawing.Size(75, 23);
		this.okButton.TabIndex = 8;
		this.okButton.Text = "OK";
		this.okButton.UseVisualStyleBackColor = true;
		this.okButton.Click += new System.EventHandler(okButton_Click);
		this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
		this.cancelButton.Location = new System.Drawing.Point(176, 376);
		this.cancelButton.Name = "cancelButton";
		this.cancelButton.Size = new System.Drawing.Size(75, 23);
		this.cancelButton.TabIndex = 9;
		this.cancelButton.Text = "Cancel";
		this.cancelButton.UseVisualStyleBackColor = true;
		this.eSCOEnhancedPanel.Location = new System.Drawing.Point(8, 54);
		this.eSCOEnhancedPanel.Name = "eSCOEnhancedPanel";
		this.eSCOEnhancedPanel.Size = new System.Drawing.Size(300, 316);
		this.eSCOEnhancedPanel.TabIndex = 10;
		this.groupBox23.Controls.Add(this.enhSyncRadioButton);
		this.groupBox23.Controls.Add(this.eScoRadioButton);
		this.groupBox23.Location = new System.Drawing.Point(8, 4);
		this.groupBox23.Name = "groupBox23";
		this.groupBox23.Size = new System.Drawing.Size(300, 44);
		this.groupBox23.TabIndex = 11;
		this.groupBox23.TabStop = false;
		this.groupBox23.Text = "HCI Command";
		this.enhSyncRadioButton.AutoSize = true;
		this.enhSyncRadioButton.Location = new System.Drawing.Point(133, 17);
		this.enhSyncRadioButton.Name = "enhSyncRadioButton";
		this.enhSyncRadioButton.Size = new System.Drawing.Size(166, 17);
		this.enhSyncRadioButton.TabIndex = 8;
		this.enhSyncRadioButton.Text = "Enhanced Setup Sync. Conn.";
		this.enhSyncRadioButton.UseVisualStyleBackColor = true;
		this.enhSyncRadioButton.CheckedChanged += new System.EventHandler(updateEscoUserControl);
		this.eScoRadioButton.AutoSize = true;
		this.eScoRadioButton.Checked = true;
		this.eScoRadioButton.Location = new System.Drawing.Point(10, 17);
		this.eScoRadioButton.Name = "eScoRadioButton";
		this.eScoRadioButton.Size = new System.Drawing.Size(114, 17);
		this.eScoRadioButton.TabIndex = 7;
		this.eScoRadioButton.TabStop = true;
		this.eScoRadioButton.Text = "Setup Sync. Conn.";
		this.eScoRadioButton.UseVisualStyleBackColor = true;
		this.eScoRadioButton.CheckedChanged += new System.EventHandler(updateEscoUserControl);
		base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(317, 411);
		base.Controls.Add(this.groupBox23);
		base.Controls.Add(this.eSCOEnhancedPanel);
		base.Controls.Add(this.cancelButton);
		base.Controls.Add(this.okButton);
		base.MaximizeBox = false;
		base.MinimizeBox = false;
		base.Name = "ESCOParameters";
		base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
		this.Text = "ESCO Parameters";
		base.Load += new System.EventHandler(ESCOParameters_Load);
		this.groupBox23.ResumeLayout(false);
		this.groupBox23.PerformLayout();
		base.ResumeLayout(false);
	}
}
