private void ConnectRobot_Click(object sender, RoutedEventArgs e) { Commands = new RobotCommand(mySerialPort); Commands.Connect(); }
public Robots() { InitializeComponent(); temp = new RobotCommand(mySerialPort, isOn, AngleTurn, command, batteryLive); }