Beispiel #1
0
 private void RefreshPort_Click(object sender, EventArgs e)
 {
     string[] available_ports = My_Rhino_SerialPort.GetAvailablePorts();
     comboBox_PortName.BeginUpdate();
     comboBox_PortName.Items.Clear();
     foreach (string port in available_ports)
     {
         comboBox_PortName.Items.Add(port);
     }
     comboBox_PortName.EndUpdate();
 }
Beispiel #2
0
        public SerialPort_UserControl()
        {
            InitializeComponent();

            string[] available_ports = My_Rhino_SerialPort.GetAvailablePorts();
            comboBox_PortName.BeginUpdate();
            foreach (string port in available_ports)
            {
                comboBox_PortName.Items.Add(port);
            }
            comboBox_PortName.EndUpdate();

            change_x_delegate_method = new change_x_delegate(change_labelX);
            change_y_delegate_method = new change_y_delegate(change_labelY);
            change_z_delegate_method = new change_z_delegate(change_labelZ);

            _continue = false;
        }