public void OnPrinterSettingChange(SPrinterSetting ss) { m_PrinterSetting = ss; if (EpsonLCD.GetGmaCleanParam(ref _gmaCleanParam)) { UIPreference.SetValueAndClampWithMinMax(numxStartPos, m_CurrentUnit, _gmaCleanParam.XStartPos / _sp.fPulsePerInchX); UIPreference.SetValueAndClampWithMinMax(numxDistance, m_CurrentUnit, _gmaCleanParam.XDistance / _sp.fPulsePerInchX); UIPreference.SetValueAndClampWithMinMax(numScraperPos, UILengthUnit.Inch, _gmaCleanParam.ScraperPos); if (_sp.fPulsePerInchZ > 0) { UIPreference.SetValueAndClampWithMinMax(num_zCLeanPos, m_CurrentUnit, _gmaCleanParam.ZCleanPos / _sp.fPulsePerInchZ); UIPreference.SetValueAndClampWithMinMax(numZCarryCleanPos, m_CurrentUnit, _gmaCleanParam.ZCarryCleanPos / _sp.fPulsePerInchZ); } numcleanRowNum.Value = _gmaCleanParam.CleanRowNum; numcleanTimes.Value = _gmaCleanParam.CleanTime; UIPreference.SetValueAndClampWithMinMax(numYCarryCleanPos, m_CurrentUnit, _gmaCleanParam.YCarryCleanPos / _sp.fPulsePerInchY); } }