public ChannelDialog()
{
InitializeComponent();
this.comboBoxSerialDeviceName.Items.AddRange(System.IO.Ports.SerialPort.GetPortNames());
this.comboBoxParity.DataSource = Enum.GetValues(typeof(Parity));
this.comboBoxStopBits.DataSource = Enum.GetValues(typeof(StopBits));
this.comboBoxFlowControl.DataSource = Enum.GetValues(typeof(FlowControl));
this.comboBoxParity.SelectedItem = Parity.NONE;
this.comboBoxStopBits.SelectedItem = StopBits.ONE;
this.comboBoxFlowControl.SelectedItem = FlowControl.NONE;
}