/// <summary> /// 运动到水平姿态 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button_tolevel_Click(object sender, EventArgs e) { double time = decimal.ToDouble(numericUpDown_time.Value); int n = decimal.ToInt32(numericUpDown_addnum.Value); robot1.GoLevel(n, time); }