Exemplo n.º 1
0
        public void OnGetPrinterSetting(ref SPrinterSetting ss, ref PeripheralExtendedSettings ex)
        {
            ss.UVSetting.fShutterOpenDistance = UIPreference.ToInchLength(m_CurrentUnit, Decimal.ToSingle(this.numericUpDownShutterDis.Value));
            int mask = 0x00;

#if !DOUBLE_SIDE_PRINT_HAPOND
            ss.UVSetting.fLeftDisFromNozzel  = UIPreference.ToInchLength(m_CurrentUnit, Decimal.ToSingle(this.numericUpDownLeftDis.Value));
            ss.UVSetting.fRightDisFromNozzel = UIPreference.ToInchLength(m_CurrentUnit, Decimal.ToSingle(this.numericUpDownRightDis.Value));
            mask |= (this.checkBox1Leftprinton.Checked ? 0x2 : 0);
            mask |= (this.checkBox1Rightprinton.Checked ? 0x1 : 0);
            mask |= (this.checkBox2Leftprinton.Checked ? 0x8 : 0);
            mask |= (this.checkBox2Rightprinton.Checked ? 0x4 : 0);
            //			mask |=	(this.m_checkBoxVisableLeft.Checked? 0x1:0);
            //			mask |=	(this.m_checkBoxVisableRight.Checked?0x4:0);
#else
            ss.UVSetting.fLeftDisFromNozzel  = UIPreference.ToInchLength(m_CurrentUnit, Decimal.ToSingle(this.numericUpDownRightDis.Value));
            ss.UVSetting.fRightDisFromNozzel = UIPreference.ToInchLength(m_CurrentUnit, Decimal.ToSingle(this.numericUpDownLeftDis.Value));
            mask |= (this.checkBox2Leftprinton.Checked ? 0x1 : 0);
            mask |= (this.checkBox2Rightprinton.Checked ? 0x2 : 0);
            mask |= (this.checkBox1Leftprinton.Checked ? 0x4 : 0);
            mask |= (this.checkBox1Rightprinton.Checked ? 0x8 : 0);
            //			mask |=	(this.m_checkBoxVisableLeft.Checked? 0x1:0);
            //			mask |=	(this.m_checkBoxVisableRight.Checked?0x4:0);
#endif
            ss.UVSetting.iLeftRightMask = (uint)mask;
            ss.UVSetting.eUvLightType   = (byte)this.cmb_UvLightType.SelectedIndex;

            if (PubFunc.IsSupportUVOffsetDistance())
            {
                ex.UVOffsetDis = GetUVOffsetFromUI();
            }
        }
Exemplo n.º 2
0
        public void OnGetPrinterSetting(ref SPrinterSetting ss, ref PeripheralExtendedSettings ex)
        {
            bool bMoveSettingChang = false;

            //zAixsSetting1.OnGetPrinterSetting(ref ss, ref bMoveSettingChang);
            uvSetting1.OnGetPrinterSetting(ref ss, ref ex);
        }
Exemplo n.º 3
0
 public void OnGetExtendedSettingsChange(ref PeripheralExtendedSettings ss)
 {
     ss.fDiameterCore        = UIPreference.ToInchLength(UILengthUnit.Millimeter, (float)numDiameterCore.Value);
     ss.fDiameterRoll        = UIPreference.ToInchLength(UILengthUnit.Millimeter, (float)numDiameterRoll.Value);
     ss.fMediaThickness      = UIPreference.ToInchLength(UILengthUnit.Millimeter, (float)numMediaThickness.Value);
     ss.fCalculateRollLength = UIPreference.ToInchLength(UILengthUnit.Meter, (float)numCalculateRollLength.Value);
 }
Exemplo n.º 4
0
 public void OnGetExtendedSettingsChange(ref PeripheralExtendedSettings ss)
 {
     ss.EnableSingleLayerMode = checkBoxEnableSingleLayerMode.Checked;
 }
Exemplo n.º 5
0
 public void OnExtendedSettingsChange(PeripheralExtendedSettings ss)
 {
     checkBoxEnableSingleLayerMode.Checked = ss.EnableSingleLayerMode;
 }
Exemplo n.º 6
0
 public void OnExtendedSettingsChange(PeripheralExtendedSettings ss)
 {
     UIPreference.SetValueAndClampWithMinMax(numDiameterCore, UILengthUnit.Millimeter, ss.fDiameterCore);
     UIPreference.SetValueAndClampWithMinMax(numDiameterRoll, UILengthUnit.Millimeter, ss.fDiameterRoll);
     UIPreference.SetValueAndClampWithMinMax(numMediaThickness, UILengthUnit.Millimeter, ss.fMediaThickness);
 }
Exemplo n.º 7
0
 public void OnGetExtendedSettings(ref PeripheralExtendedSettings ss)
 {
     ss.StepAdjust = UIPreference.ToInchLength(_mCurrentUnit, (float)numAdjustStep.Value);//
 }
Exemplo n.º 8
0
 public void OnExtendedSettingsChange(PeripheralExtendedSettings ss)
 {
     numAdjustStep.Value = new decimal(UIPreference.ToDisplayLength(_mCurrentUnit, ss.StepAdjust)); //should control by UI tony not test
 }