private bool RotatingIndex() { double dTempValue = 0.0; if (double.TryParse(this.txtRotateCount.Text, out dTempValue)) { DataManager.SelectedModel.dRotateCount = dTempValue; } else { return(false); } double dMoveValue = MultiMotion.AxisValue[MultiMotion.INDEX_FIX_R] + DataManager.SelectedModel.dRotateCount * 360.0; if (MultiMotion.GantryAxisEnable(0, true) == MultiMotion.KSM_OK) { MultiMotion.IndexGantryAxis(MultiMotion.INDEX_FIX_R, MultiMotion.INDEX_MOVE_R, dMoveValue, true); } return(true); }