private void Button1_Click(object sender, EventArgs e) { int Pos = Convert.ToInt32(numericUpDown1.Value); Point3D <double> pos1 = tray.GetPosition(tray.BasePosition, Pos); MoveToPoint(pos1); }