Ejemplo n.º 1
0
 public void OnScorpionSettingsChanged(SDoubleSidePrint settings)
 {
     this.updownAddLineNum.Value     = settings.AddLineNum;
     this.updownPenWidth.Value       = new decimal(UIPreference.ToDisplayLength(_mCurrentUnit, settings.PenWidth));
     this.updownCrossWidth.Value     = (decimal)UIPreference.ToDisplayLength(_mCurrentUnit, settings.CrossWidth);
     this.updownCrossHeight.Value    = (decimal)UIPreference.ToDisplayLength(_mCurrentUnit, settings.CrossHeight);
     this.updownCrossOffsetX.Value   = (decimal)UIPreference.ToDisplayLength(_mCurrentUnit, settings.CrossOffsetX);
     this.updownCrossOffsetY.Value   = (decimal)UIPreference.ToDisplayLength(_mCurrentUnit, settings.CrossOffsetY);
     this.cmbCrossFlag.SelectedIndex = settings.CrossFlag;
     this.crossColorY.Checked        = (settings.CrossColor & (1 << 0)) != 0;
     this.crossColorM.Checked        = (settings.CrossColor & (1 << 1)) != 0;
     this.crossColorC.Checked        = (settings.CrossColor & (1 << 2)) != 0;
     this.crossColorK.Checked        = (settings.CrossColor & (1 << 3)) != 0;
     this.crossColorLc.Checked       = (settings.CrossColor & (1 << 4)) != 0;
     this.crossColorLm.Checked       = (settings.CrossColor & (1 << 5)) != 0;
 }
Ejemplo n.º 2
0
        public void OnGetPrinterSetting(ref AllParam allParam, ref bool bChangeProperty)
        {
            try
            {
                if (_printerProperty.EPSONLCD_DEFINED)
                {
                    m_epsonBaseSetting.OnGetPrinterSetting(ref allParam.PrinterSetting, ref allParam.EpsonAllParam);
                }
                else
                {
                    m_BaseSetting.OnGetPrinterSetting(ref allParam.PrinterSetting);
                }

                m_BaseSetting.OnGetExtendedSettingsChange(ref allParam.ExtendedSettings);

                if (this.m_TabControlSetting.TabPages.Contains(this.m_TabPageCaliSetting))
                {
                    m_CalibrationSetting.OnGetPrinterSetting(allParam);
                }
                m_PreferenceSetting.OnGetPreference(ref allParam.Preference);
                m_SeviceSetting.OnGetProperty(ref allParam.PrinterProperty, ref bChangeProperty);
                //m_RealTimeSetting.OnGetPrinterSetting(ref allParam.PrinterSetting);
                m_MoveSetting.OnGetPrinterSetting(ref allParam.PrinterSetting);
                if (allParam.PrinterProperty.bSupportWhiteInk || allParam.PrinterProperty.bSupportWhiteInkYoffset)
                {
                    spotColorSetting1.OnGetPrinterSetting(ref allParam.PrinterSetting);
                    spotColorSetting1.OnGetExtendedSettingsChange(ref allParam.ExtendedSettings);
                }

                if (_printerProperty.EPSONLCD_DEFINED)
                {
                    m_SeviceSetting.OnGetServiceSetting(ref allParam.EpsonAllParam.sCaliConfig);
                    EpsonLCD.SetCaliConfig(allParam.EpsonAllParam.sCaliConfig);
                }

                //else
                {
                    SSeviceSetting sSeviceSet = allParam.SeviceSetting;
                    m_SeviceSetting.OnGetServiceSetting(ref sSeviceSet);
                    if (allParam.Preference.ScanningAxis == CoreConst.AXIS_X ||
                        allParam.Preference.ScanningAxis == CoreConst.AXIS_4)
                    {
                        sSeviceSet.scanningAxis = allParam.Preference.ScanningAxis;
                    }
                    else
                    {
                        sSeviceSet.scanningAxis = CoreConst.AXIS_X;
                    }

                    CoreInterface.SetSeviceSetting(ref sSeviceSet);
                    allParam.SeviceSetting = sSeviceSet;
                }
                SDoubleSidePrint doubleSide = allParam.DoubleSidePrint;
                doublePrintSetting1.OnGetScorpionSettings(ref doubleSide);
                allParam.DoubleSidePrint = doubleSide;

                //获取3D打印页签中的控件值
                m_Printer3DSetting.OnGetPrinterSetting(allParam);
                //获取用户设置的值
                userExtensionSetting.OnGetPrinterSetting(allParam);
                defineUVPowerLevel1.OnGetPrinterSetting(ref allParam.PrinterSetting, ref allParam.UvPowerLevelMap);
                //判断是否显示打印模式
                if ((UIFunctionOnOff.SupportPrintMode && PubFunc.IsFactoryUser()))
                {
                    jobConfigModes1.OnGetPrinterSetting();
                }

                if (UIFunctionOnOff.SupportMediaMode)
                {
                    mediaConfigs1.OnGetPrinterSetting();
                }

                if (UIFunctionOnOff.SupportCloseNozzle)
                {
                    closeColorNozzle1.OnGetPrinterSetting(ref allParam);
                }

                if (SPrinterProperty.IsJianRui())
                {
                    workposSetting1.OnGetPrinterSetting(ref allParam.PrinterSetting);
                }
                if (UIFunctionOnOff.SupportDebugQuality)
                {
                    debugQuality1.OnGetPrinterSetting(ref allParam);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Ejemplo n.º 3
0
        public void OnGetScorpionSettings(ref SDoubleSidePrint settings)
        {
            settings.CrossColor = 0;
            if (crossColorY.Checked)
            {
                settings.CrossColor |= 1;
            }
            if (crossColorM.Checked)
            {
                settings.CrossColor |= 1 << 1;
            }
            if (crossColorC.Checked)
            {
                settings.CrossColor |= 1 << 2;
            }
            if (crossColorK.Checked)
            {
                settings.CrossColor |= 1 << 3;
            }
            if (crossColorLc.Checked)
            {
                settings.CrossColor |= 1 << 4;
            }
            if (crossColorLm.Checked)
            {
                settings.CrossColor |= 1 << 5;
            }
            settings.CrossFlag = this.cmbCrossFlag.SelectedIndex;
            var value = this.updownAddLineNum.Value;

            if (value != null)
            {
                settings.AddLineNum = (int)value;
            }
            var value1 = this.updownCrossHeight.Value;

            if (value1 != null)
            {
                settings.CrossHeight = UIPreference.ToInchLength(_mCurrentUnit, (float)value1);
            }
            value1 = this.updownCrossOffsetX.Value;
            if (value1 != null)
            {
                settings.CrossOffsetX = UIPreference.ToInchLength(_mCurrentUnit, (float)value1);
            }
            value1 = this.updownCrossOffsetY.Value;
            if (value1 != null)
            {
                settings.CrossOffsetY = UIPreference.ToInchLength(_mCurrentUnit, (float)value1);
            }
            value1 = this.updownCrossWidth.Value;
            if (value1 != null)
            {
                settings.CrossWidth = UIPreference.ToInchLength(_mCurrentUnit, (float)value1);
            }
            value1 = this.updownPenWidth.Value;
            if (value1 != null)
            {
                settings.PenWidth = UIPreference.ToInchLength(_mCurrentUnit, (float)value1);
            }
        }