///// <summary> ///// 点击保存位置按钮 ///// </summary> ///// <param name="sender"></param> ///// <param name="e"></param> //private void m_rBtnSavePosition_Click(object sender, EventArgs e) //{ // var dXposition = m_oKernel.GetAxisCurPos(0, CKernel.ENUM_AXIS_TYPE.X_AXIS); // var dYposition = m_oKernel.GetAxisCurPos(0, CKernel.ENUM_AXIS_TYPE.Y_AXIS); // var dZposition = m_oKernel.GetAxisCurPos(0, CKernel.ENUM_AXIS_TYPE.Z_AXIS); // var structPosition = new CKernel.STRUCT_POSITION(dXposition.ToString(CultureInfo.CurrentCulture), // dYposition.ToString(CultureInfo.CurrentCulture), dZposition.ToString(CultureInfo.CurrentCulture)); // // m_oKernel.SetPositionToIni(m_comboBoxPosition.Text, structPosition); //} ///// <summary> ///// 点击去当前选择位置按钮 ///// </summary> ///// <param name="sender"></param> ///// <param name="e"></param> //private void m_rBtnGoPosition_Click(object sender, EventArgs e) //{ // var tGoPositionThread = new Thread(GoPositionThread) { IsBackground = true }; // //tGoPositionThread.Start(m_comboBoxPosition.Text); //} /// <summary> /// 走位线程 /// </summary> /// <param name="obj"></param> private void GoPositionThread(object obj) { string strPosition = (string)obj; m_oKernel.Go2DPosition(0, strPosition); }