public void OnPreferenceChange(UIPreference up) { UILengthUnit newUnit = up.Unit; UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numCappingPosY); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numCleanPosZ); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numCappingPosZ); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numSuckStartPlace); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numSuckEndPlace); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numPreOffset); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numCleanSlotSpace); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numScraperStart1); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numScraperStart2); string newUnitdis = ResString.GetEnumDisplayName(typeof(UILengthUnit), newUnit); UIPreference.NumericUpDownToolTip(newUnitdis, this.numCappingPosY, this.toolTip1); UIPreference.NumericUpDownToolTip(newUnitdis, this.numCleanPosZ, this.toolTip1); UIPreference.NumericUpDownToolTip(newUnitdis, this.numCappingPosZ, this.toolTip1); UIPreference.NumericUpDownToolTip(newUnitdis, this.numSuckStartPlace, this.toolTip1); UIPreference.NumericUpDownToolTip(newUnitdis, this.numSuckEndPlace, this.toolTip1); UIPreference.NumericUpDownToolTip(newUnitdis, this.numPreOffset, this.toolTip1); UIPreference.NumericUpDownToolTip(newUnitdis, this.numCleanSlotSpace, this.toolTip1); UIPreference.NumericUpDownToolTip(newUnitdis, this.numScraperStart1, this.toolTip1); UIPreference.NumericUpDownToolTip(newUnitdis, this.numScraperStart2, this.toolTip1); string speedUnit = string.Format("{0}/{1}", newUnitdis, ResString.GetResString("DisplayTime_Second")); UIPreference.NumericUpDownToolTip(speedUnit, this.numPretreatmentSpeed, this.toolTip1); UIPreference.NumericUpDownToolTip(speedUnit, this.numRuturnSpeed, this.toolTip1); m_CurrentUnit = newUnit; }
private void OnUnitChange(UILengthUnit newUnit) { UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numericUpDownLeftDis); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numericUpDownRightDis); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numericUpDownShutterDis); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numPLOpen); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numPLClose); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numPROpen); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numPRClose); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numPLOpen2); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numPLClose2); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numPROpen2); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numPRClose2); string newUnitdis = ResString.GetEnumDisplayName(typeof(UILengthUnit), newUnit); UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDownLeftDis, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDownRightDis, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDownShutterDis, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numPLOpen, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numPLClose, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numPROpen, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numPRClose, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numPLOpen2, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numPLClose2, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numPROpen2, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numPRClose2, this.m_ToolTip); // this.isDirty = false; }
private void OnUnitChange(UILengthUnit newUnit) { UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numDetectorOffset); string newUnitdis = ResString.GetEnumDisplayName(typeof(UILengthUnit), newUnit); UIPreference.NumericUpDownToolTip(newUnitdis, this.numDetectorOffset, this.m_ToolTip); }
private void OnUnitChange(UILengthUnit newUnit) { UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, m_NumericUpDownOrigin); UIPreference.NumericUpDownToolTip(newUnit.ToString(), this.m_NumericUpDownOrigin, this.m_ToolTip); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, m_NumericUpDownOriginY); UIPreference.NumericUpDownToolTip(newUnit.ToString(), this.m_NumericUpDownOriginY, this.m_ToolTip); }
private void OnUnitChange(UILengthUnit newUnit) { UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, m_NumericUpDownLength); string newUnitdis = ResString.GetEnumDisplayName(typeof(UILengthUnit), newUnit); UIPreference.NumericUpDownToolTip(newUnitdis, this.m_NumericUpDownLength, this.m_ToolTip); this.isDirty = false; }
private void OnUnitChange(UILengthUnit newUnit) { for (int i = 0; i < m_HeadNum; i++) { UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.m_NumericUpDownXs[i]); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.m_NumericUpDownYs[i]); UIPreference.NumericUpDownToolTip(newUnit.ToString(), this.m_NumericUpDownXs[i], this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnit.ToString(), this.m_NumericUpDownYs[i], this.m_ToolTip); } }
private void OnUnitChange(UILengthUnit newUnit) { UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numXPressInkPos); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numYCleanPos); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numZCleanPos); string newUnitdis = ResString.GetEnumDisplayName(typeof(UILengthUnit), newUnit); UIPreference.NumericUpDownToolTip(newUnitdis, this.numXPressInkPos, this.toolTip1); UIPreference.NumericUpDownToolTip(newUnitdis, this.numYCleanPos, this.toolTip1); UIPreference.NumericUpDownToolTip(newUnitdis, this.numZCleanPos, this.toolTip1); }
private void OnUnitChange(UILengthUnit newUnit) { UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, _mCurrentUnit, updownPenWidth); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, _mCurrentUnit, updownCrossWidth); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, _mCurrentUnit, updownCrossHeight); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, _mCurrentUnit, updownCrossOffsetX); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, _mCurrentUnit, updownCrossOffsetY); string newUnitdis = ResString.GetEnumDisplayName(typeof(UILengthUnit), newUnit); toolTip1.SetToolTip(updownPenWidth, newUnitdis); toolTip1.SetToolTip(updownCrossWidth, newUnitdis); toolTip1.SetToolTip(updownCrossHeight, newUnitdis); toolTip1.SetToolTip(updownCrossOffsetX, newUnitdis); toolTip1.SetToolTip(updownCrossOffsetY, newUnitdis); }
private void OnUnitChange(UILengthUnit newUnit) { UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.m_NumericUpDown_3DZDownDis); m_NumericUpDown_3DZDownDis.DecimalPlaces = 3; //UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.m_NumericUpDown_3DSandDis); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.m_NumericUpDown_ZAdjustment); m_NumericUpDown_ZAdjustment.DecimalPlaces = 4; m_NumericUpDown_ZAdjustment.Increment = new Decimal(0.0001f); string newUnitdis = ResString.GetEnumDisplayName(typeof(UILengthUnit), newUnit); UIPreference.NumericUpDownToolTip(newUnitdis, this.m_NumericUpDown_ZAdjustment, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.m_NumericUpDown_3DZDownDis, this.m_ToolTip); this.isDirty = false; }
private void OnUnitChange(UILengthUnit newUnit) { UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.m_NumericUpDownXStartPos); //UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.m_NumericUpDownYEndPos); //UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numericXAxisPos); //UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numericBladeYMobileDistance); //UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numericScrapPlatformZPos); string newUnitdis = ResString.GetEnumDisplayName(typeof(UILengthUnit), newUnit); UIPreference.NumericUpDownToolTip(newUnitdis, this.m_NumericUpDownXStartPos, this.m_ToolTip); //UIPreference.NumericUpDownToolTip(newUnitdis, this.m_NumericUpDownYEndPos, this.m_ToolTip); //UIPreference.NumericUpDownToolTip(newUnitdis, this.numericXAxisPos, this.m_ToolTip); //UIPreference.NumericUpDownToolTip(newUnitdis, this.numericBladeYMobileDistance, this.m_ToolTip); //UIPreference.NumericUpDownToolTip(newUnitdis, this.numericScrapPlatformZPos, this.m_ToolTip); }
private void OnUnitChange(UILengthUnit newUnit) { UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numCappingPosX); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numCappingPosY); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numCappingPosZ); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numHomePosX); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numHomePosY); string newUnitdis = ResString.GetEnumDisplayName(typeof(UILengthUnit), newUnit); UIPreference.NumericUpDownToolTip(newUnit.ToString(), this.numCappingPosX, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnit.ToString(), this.numCappingPosY, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnit.ToString(), this.numCappingPosZ, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnit.ToString(), numHomePosX, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnit.ToString(), numHomePosY, this.m_ToolTip); this.isDirty = false; }
private void OnUnitChange(UILengthUnit newUnit) { UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numxStartPos); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numxDistance); //UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numScraperPos); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.num_zCLeanPos); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numYCarryCleanPos); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numZCarryCleanPos); string newUnitdis = ResString.GetEnumDisplayName(typeof(UILengthUnit), newUnit); UIPreference.NumericUpDownToolTip(newUnitdis, this.numxStartPos, this.toolTip1); UIPreference.NumericUpDownToolTip(newUnitdis, this.numxDistance, this.toolTip1); //UIPreference.NumericUpDownToolTip(newUnitdis, this.numScraperPos, this.toolTip1); UIPreference.NumericUpDownToolTip(newUnitdis, this.num_zCLeanPos, this.toolTip1); UIPreference.NumericUpDownToolTip(newUnitdis, this.numYCarryCleanPos, this.toolTip1); UIPreference.NumericUpDownToolTip(newUnitdis, this.numZCarryCleanPos, this.toolTip1); }
private void OnUnitChange(UILengthUnit newUnit) { UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, _mCurrentUnit, numLeftUp); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, _mCurrentUnit, numRightUp); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, _mCurrentUnit, numLr); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, _mCurrentUnit, numFb); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, _mCurrentUnit, numAdjustStep); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, _mCurrentUnit, numCursorPosX); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, _mCurrentUnit, numCursorPosY); string newUnitdis = ResString.GetEnumDisplayName(typeof(UILengthUnit), newUnit); toolTip1.SetToolTip(numLeftUp, newUnitdis); toolTip1.SetToolTip(numRightUp, newUnitdis); toolTip1.SetToolTip(numLr, newUnitdis); toolTip1.SetToolTip(numFb, newUnitdis); toolTip1.SetToolTip(numAdjustStep, newUnitdis); toolTip1.SetToolTip(numCursorPosX, newUnitdis); toolTip1.SetToolTip(numCursorPosY, newUnitdis); }
private void OnUnitChange(UILengthUnit newUnit) { UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numericUpDownZspace); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numericUpDownMesureHeight); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numericUpDownZMax); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numericUpDownMesureXCoor); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numericUpDownSensorPosZ); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numericUpDown7); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, this.numericUpDown8); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, m_NumericUpDownThickness); string newUnitdis = ResString.GetEnumDisplayName(typeof(UILengthUnit), newUnit); UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDownZspace, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDownMesureHeight, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDownZMax, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDownMesureXCoor, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDownSensorPosZ, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDown7, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDown8, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.m_NumericUpDownThickness, this.m_ToolTip); }
private void OnUnitChange(UILengthUnit newUnit) { UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numericUpDownX); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numericUpDownY); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numericUpDownW); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numericUpDownH); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numericUpDownXDis); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numericUpDownYDis); UIPreference.OnFloatNumericUpDownUnitChanged(newUnit, m_CurrentUnit, numericUpDown_noteMargin); string newUnitdis = ResString.GetEnumDisplayName(typeof(UILengthUnit), newUnit); UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDownX, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDownY, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDownW, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDownH, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDownXDis, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDownYDis, this.m_ToolTip); UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDown_noteMargin, this.m_ToolTip); // this.isDirty = false; }