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

            _sw                     = new Stopwatch();
            this.Shown             += SetClockTime_Shown;
            comboBox1.DataSource    = SerialPortUtilities.GetSerialPorts(); //SerialPort.GetPortNames();
            comboBox1.DisplayMember = "Name";

            comboBox2.DataSource = new int[] { 4800, 9600, 19200, 115200 };
        }
Exemple #2
0
 private void button9_Click(object sender, EventArgs e)
 {
     comboBox1.DataSource    = SerialPortUtilities.GetSerialPorts(); //SerialPort.GetPortNames();
     comboBox1.DisplayMember = "Name";
 }