private void CBtnRobotTestTeachPoint_Click(object sender, EventArgs e) { if (m_ManualRobot.IsConnected()) { int nPointIndex = m_ManualRobotGlobalPointIndex; m_ManualRobot.TechGlobalPoint(nPointIndex); GetRobotGlobalPoint(m_ManualRobot, DGV_RobotGlobalPoint, nPointIndex); } }