界面:
程序:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
//Add reference before you
using URSDK.RobController.Communication;
namespace WindowsFormsApp7
{
public partial class Form1 : Form
{
//Definition
private DashBoard aDashBoard; //Dashboard instance, port: 29999
public Form1()
{
InitializeComponent();
aDashBoard = new DashBoard(textBox2.Text);
}
private void button1_Click(object sender, EventArgs e)
{
string retv1 = aDashBoard.loadProgram(textBox2.Text);
string retv2 = aDashBoard.play();
}
private void button2_Click(object sender, EventArgs e)
{
string retv3 = aDashBoard.stop();
}
}
}