Beispiel #1
0
 public void OnPrinterSettingChange(SPrinterSetting ss)
 {
     m_PrinterSetting = ss;
     if (EpsonLCD.GetHlcCleanParam(ref _hlcCleanParam))
     {
         UIPreference.SetValueAndClampWithMinMax(numXPressInkPos, m_CurrentUnit, _hlcCleanParam.XPressInkPos / _sp.fPulsePerInchX);
         UIPreference.SetValueAndClampWithMinMax(numYCleanPos, m_CurrentUnit, _hlcCleanParam.YCleanPos / _sp.fPulsePerInchY);
         UIPreference.SetValueAndClampWithMinMax(numZCleanPos, UILengthUnit.Inch, _hlcCleanParam.ZCleanPos);
         if (_sp.fPulsePerInchZ > 0)
         {
             UIPreference.SetValueAndClampWithMinMax(numZCleanPos, m_CurrentUnit, _hlcCleanParam.ZCleanPos / _sp.fPulsePerInchZ);
         }
         numYCleanSpeed.Value     = _hlcCleanParam.YCleanSpeed < numYCleanSpeed.Maximum ? _hlcCleanParam.YCleanSpeed : 0;
         numPressInkTime.Value    = _hlcCleanParam.PressInkTime < numPressInkTime.Maximum ? _hlcCleanParam.PressInkTime : 0;
         numRecoveryInkTime.Value = _hlcCleanParam.RecoveryInkTime < numRecoveryInkTime.Maximum ? _hlcCleanParam.RecoveryInkTime : 0;
     }
 }