Exemple #1
0
        public Form1()
        {
            InitializeComponent();

            comManager = new ComManager();
            foreach (string serialPort in comManager.getSerialPorts())
            {
                cbSerialPorts.Items.Add(serialPort);
            }
            if (cbSerialPorts.Items.Count > 0) cbSerialPorts.SelectedIndex = 0;

            connected = false;
            updateGui();
        }
Exemple #2
0
        public Form1()
        {
            InitializeComponent();

            comManager = new ComManager();
            foreach (string serialPort in comManager.getSerialPorts())
            {
                cbSerialPorts.Items.Add(serialPort);
            }
            if (cbSerialPorts.Items.Count > 0)
            {
                cbSerialPorts.SelectedIndex = 0;
            }

            connected = false;
            updateGui();
        }