示例#1
0
 private void motorsConnectMenuItem_Click(object sender, EventArgs e)
 {
     if (motors.IsConnected)
     {
         motors.Disconnect();
     }
     else
     {
         motors.Connect();
     }
 }
示例#2
0
        public MainForm()
        {
            InitializeComponent();

            client = new CRobotClient(this);
            servos = new CServosController(this);
            motors = new CMotorsController(this);

            servos.Connect();
            motors.Connect();
        }
示例#3
0
        //CRbotoHost host;
        public MainForm()
        {
            InitializeComponent();

            client = new CRobotClient(this);
            servos = new CServosController(this);
            motors = new CMotorsController(this);

            servos.Connect();
            motors.Connect();
        }