Exemplo n.º 1
0
        }                                                                               //	結束GetComportList方法

        /// <summary>
        /// ListSerialPort方法用於列出SerialPort
        /// </summary>
        private void ListSerialPort()                                               //	ListSerialPort方法
        {                                                                           //	進入ListSerialPort方法
            ComportList1.UpdateComportList(SerialPort.GetPortNames());              //	偵測已連線的SerialPort並儲存結果
            SetConnectedCOMPortCount(ComportList1.GetComportList().Length);
        }                                                                           //	結束ListSerialPort方法