public void OnGetServiceSetting(ref SSeviceSetting sSeviceSet) { if (!m_sPrinterProperty.EPSONLCD_DEFINED) { sSeviceSet.nCalibrationHeadIndex = m_ComboBoxBaseColor.SelectedIndex; } sSeviceSet.Vsd2ToVsd3_ColorDeep = (byte)(m_ComboBoxBit2Mode.SelectedIndex + 1); uint mask = 0x1; uint cur = 0; for (int j = 0; j < m_CheckedListBoxColor.Items.Count; j++) { if (!m_CheckedListBoxColor.GetItemChecked(j)) { cur |= mask; } mask <<= 1; } sSeviceSet.unColorMask = cur; mask = 0x1; cur = 0; for (int j = 0; j < m_CheckedListBoxPass.Items.Count; j++) { if (!m_CheckedListBoxPass.GetItemChecked(j)) { cur |= mask; } mask <<= 1; } sSeviceSet.unPassMask = cur; sSeviceSet.Vsd2ToVsd3 = (byte)m_ComboBoxSpeed.SelectedIndex; sSeviceSet.nDirty = (this.isDirty)?(uint)1:(uint)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); } }
public void OnServiceSettingChange(SSeviceSetting sSeviceSet, CaliConfig cc) { if (m_sPrinterProperty.EPSONLCD_DEFINED) { int i = 0; foreach (byte ce in m_sPrinterProperty.eColorOrder) { if (ce == cc.BaseColor) { UIPreference.SetSelectIndexAndClampWithMax(m_ComboBoxBaseColor, i); } if (ce == cc.YStepColor[0]) { UIPreference.SetSelectIndexAndClampWithMax(comboBoxYStepColor1, i); } if (ce == cc.YStepColor[1]) { UIPreference.SetSelectIndexAndClampWithMax(comboBoxYStepColor2, i); } i++; } } else { UIPreference.SetSelectIndexAndClampWithMax(m_ComboBoxBaseColor, sSeviceSet.nCalibrationHeadIndex); } if (sSeviceSet.Vsd2ToVsd3_ColorDeep >= 1 && sSeviceSet.Vsd2ToVsd3_ColorDeep <= 3) { UIPreference.SetSelectIndexAndClampWithMax(m_ComboBoxBit2Mode, sSeviceSet.Vsd2ToVsd3_ColorDeep - 1); } else { UIPreference.SetSelectIndexAndClampWithMax(m_ComboBoxBit2Mode, 0); } uint mask = 0x1; for (int j = 0; j < m_CheckedListBoxColor.Items.Count; j++) { if ((sSeviceSet.unColorMask & mask) == 0) { m_CheckedListBoxColor.SetItemChecked(j, true); } else { m_CheckedListBoxColor.SetItemChecked(j, false); } mask <<= 1; } mask = 0x1; for (int j = 0; j < m_CheckedListBoxPass.Items.Count; j++) { if ((sSeviceSet.unPassMask & mask) == 0) { m_CheckedListBoxPass.SetItemChecked(j, true); } else { m_CheckedListBoxPass.SetItemChecked(j, false); } mask <<= 1; } UIPreference.SetSelectIndexAndClampWithMax(m_ComboBoxSpeed, (int)sSeviceSet.Vsd2ToVsd3); }