private void button1_Click(object sender, EventArgs e)//when button1 is clicked { robot.WalkPath(path); }