Пример #1
0
        private void buttonReloadSerial_Click(object sender, EventArgs e)
        {
            Log("Getting available serial ports...");

            comboBox1.Items.Clear();
            foreach (string str in SerialCommunicator.getSerialPorts())
            {
                comboBox1.Items.Add(str);
            }
        }
Пример #2
0
        public Form1()
        {
            communicator = new SerialCommunicator(LogSerialMessage, Log);

            InitializeComponent();
        }