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

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

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