private void button7_Click(object sender, EventArgs e) { if (manualControl) { var forward = new Forward(getSelectedBike().serverID, Commands.BIKECOMMAND, "PW " + power); client.sendData(forward); } }
//bikecommand send button private void button1_Click(object sender, EventArgs e) { if (getSelectedBike() == null) { return; } if ((messager.Text != "") && (messager.Text != standardTextBikeCommand)) { var forward = new Forward(getSelectedBike().serverID, Commands.BIKECOMMAND, bikeCommand.Text); client.sendData(forward); bikeCommand.Clear(); bikeCommand_Leave(null, null); } }