public void OnPreferenceChange(UIPreference up) { if (m_CurrentUnit != up.Unit) { OnUnitChange(up.Unit); m_CurrentUnit = up.Unit; } this.manualCleanSetting.OnPreferenceChange(up); docanManualCleanSetting1.OnPreferenceChange(up); if (bColorJet) { if (bSsystem) { colorjetManualCleanSettingS.OnPreferenceChange(up); } else { colorjetManualCleanSettingA1.OnPreferenceChange(up); } } if (bGzGmaHead) { this.gmaCleanSetting1.OnPreferenceChange(up); } if (bIsHLC) { this.hlcCleanSetting1.OnPreferenceChange(up); } if (bIsPQ) { this.pqCleanSetting1.OnPreferenceChange(up); } }
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; }
public void OnPreferenceChange(UIPreference up) { //if (m_CurrentUnit != up.Unit) //{ OnUnitChange(up.Unit); m_CurrentUnit = up.Unit; //} }
public void OnPreferenceChange(UIPreference up) { if (m_CurrentUnit != up.Unit) { OnUnitChange(up.Unit); m_CurrentUnit = up.Unit; } }
/// <summary> /// 单位变化 /// </summary> /// <param name="up"></param> public void OnPreferenceChange(UIPreference up) { { OnUnitChange(up.Unit); m_CurrentUnit = up.Unit; this.isDirty = false; } }
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, 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,this.numericUpDownMesureXCoor); // UIPreference.OnFloatNumericUpDownUnitChanged(newUnit,m_CurrentUnit,this.numericUpDown7); // // string newUnitdis = ResString.GetEnumDisplayName(typeof(UILengthUnit), newUnit); // UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDownMesureXCoor, this.m_ToolTip); // UIPreference.NumericUpDownToolTip(newUnitdis, this.numericUpDown7, 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; }
/// <summary> /// 单位变化 /// </summary> /// <param name="up"></param> public void OnPreferenceChange(UIPreference up) { { OnUnitChange(up.Unit); m_CurrentUnit = up.Unit; this.isDirty = false; } this.cleanSetting3D1.OnPreferenceChange(up); }
public void OnPreferenceChange(UIPreference up) { m_bInitControl = true; if (m_CurrentUnit != up.Unit) { OnUnitChange(up.Unit); m_CurrentUnit = up.Unit; } m_bInitControl = false; }
public void OnPreferenceChange(UIPreference up) { if (m_CurrentUnit != up.Unit) { OnUnitChange(up.Unit); m_CurrentUnit = up.Unit; // this.isDirty = false; } this.zAixsSetting1.OnPreferenceChange(up); }
private void UpdateJobInfo(UILengthUnit unit, UIJob jobInfo) { InitNull(); if (jobInfo != null) { //float width = this.CalcRealJobWidth(unit,jobInfo.JobSize.Width); UpdateJobInfoText(unit, jobInfo.JobSize.Width, jobInfo.JobSize.Height, jobInfo.ResolutionX, jobInfo.ResolutionY, jobInfo.ColorDeep, jobInfo.PassNumber, jobInfo.PrintingDirection, jobInfo.FileLocation, jobInfo.LangID); } }
public void OnPreferenceChange(UIPreference up) { this.printingInfo1.OnPreferenceChange(up); if (m_CurrentUnit != up.Unit) { isSetting = true; OnUnitChange(up.Unit); m_CurrentUnit = up.Unit; isSetting = 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.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_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 UpdateJobInfo(UILengthUnit unit, UIJob jobInfo) { if (jobInfo == null) { InitNull(); } else { float width = jobInfo.JobSize.Width; //PubFunc.CalcRealJobWidth(jobInfo.JobSize.Width,this.m_iPrinterChange.GetAllParam()); UpdateJobInfoText(unit, width, jobInfo.JobSize.Height, jobInfo.ResolutionX, jobInfo.ResolutionY, jobInfo.ColorDeep, jobInfo.PassNumber, jobInfo.PrintingDirection, jobInfo.FileLocation, jobInfo.LangID); } }
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); }
public void OnPreferenceChange(UIPreference up) { UpdateJobInfo(up.Unit, m_curJob); if (m_curUnit != up.Unit) { m_curUnit = up.Unit; if (m_curJob != null) { UpdateJobInfo(m_curUnit, m_curJob); } else if (m_bPrintingPreview && m_bCreateImageWithPercent) { OnSwitchToPrintingPreview(); } } }
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, 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); }
public void OnPreferenceChange(UIPreference up) { if (m_CurrentUnit != up.Unit) { OnUnitChange(up.Unit); m_CurrentUnit = up.Unit; // this.isDirty = false; } if (SPrinterProperty.IsFloraUv()) { numericUpDownMesureXCoor.Minimum = (decimal)UIPreference.ToDisplayLength(m_CurrentUnit, (float)(40 / 2.54)); numericUpDownMesureXCoor.Maximum = (decimal)UIPreference.ToDisplayLength(m_CurrentUnit, (float)(350 / 2.54)); numericUpDown7.Minimum = (decimal)UIPreference.ToDisplayLength(m_CurrentUnit, (float)(5 / 2.54)); numericUpDown7.Maximum = (decimal)UIPreference.ToDisplayLength(m_CurrentUnit, (float)(155 / 2.54)); } }
private void UpdatePrintingJobInfo(UILengthUnit unit, SPrtFileInfo jobInfo) { float width = 0; if (jobInfo.sFreSetting.nResolutionX != 0) { width = (float)jobInfo.sImageInfo.nImageWidth / (float)(jobInfo.sFreSetting.nResolutionX); // width = this.CalcRealJobWidth(unit,width); //width = UIPreference.ToDisplayLength(unit,width); } float height = 0; if (jobInfo.sFreSetting.nResolutionY != 0) { height = (float)jobInfo.sImageInfo.nImageHeight / (float)(jobInfo.sFreSetting.nResolutionY); //height = UIPreference.ToDisplayLength(unit,height); } UpdateJobInfoText(unit, width, height, jobInfo.sFreSetting.nResolutionX * jobInfo.sImageInfo.nImageResolutionX, jobInfo.sFreSetting.nResolutionY * jobInfo.sImageInfo.nImageResolutionY, jobInfo.sImageInfo.nImageColorDeep, jobInfo.sFreSetting.nPass, jobInfo.sFreSetting.nBidirection, null, 0); }
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 float CalcRealJobWidth(UILengthUnit unit, float jobwidth) { float ret = 0; AllParam allparam = this.m_iPrinterChange.GetAllParam(); float orginX = allparam.PrinterSetting.sFrequencySetting.fXOrigin; float colorbarspace = allparam.PrinterSetting.sBaseSetting.sStripeSetting.fStripeOffset; float colorbarwidth = allparam.PrinterSetting.sBaseSetting.sStripeSetting.fStripeWidth; InkStrPosEnum place = allparam.PrinterSetting.sBaseSetting.sStripeSetting.eStripePosition; float pw = allparam.PrinterSetting.sBaseSetting.fPaperWidth; switch (place) { case InkStrPosEnum.Both: ret = (colorbarwidth + colorbarspace) * 2 + jobwidth; if (orginX + ret > pw) { ret = pw - orginX; } break; case InkStrPosEnum.Left: case InkStrPosEnum.Right: ret = (colorbarwidth + colorbarspace) + jobwidth; if (orginX + ret > pw) { ret = pw - orginX; } break; case InkStrPosEnum.None: ret = jobwidth; if (orginX + ret > pw) { ret = pw - orginX; } break; } return(ret); }
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; }
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); }