void DisplayComPortDetails()
        {
            string portName = cmbSerialPort.Text;

            if (portName.StartsWith("COM"))
            {
                SerialPort port = new SerialPortCfg(portName);
                SerialPortAPI.FillSerialPortSettings(ref port);
                pgComSettings.SelectedObject = port;
            }
        }
예제 #2
0
        void DisplayComPortDetails()
        {
            string portName = cmbSerialPort.Text;

            if (portName.StartsWith("COM"))
            {
                SerialPort port = new SerialPortCfg(portName);
                SerialPortAPI.FillSerialPortSettings(ref port);
                pgComSettings.SelectedObject = port;
            }
        }