Automatak.Simulator.DNP3.Components.ChannelDialog.ChannelDialog C# (CSharp) Method

ChannelDialog() public method

public ChannelDialog ( ) : System
return System
        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;
        }