Пример #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();
        }