public void OnPrinterSettingChange(SPrinterSetting ss, SPrinterProperty sp) { m_PrinterSetting = ss; //Printer Setting backup if (bColorJet) { if (EpsonLCD.GetManualCleanParam(ref _manualCleanParamData) == false) { string info = ResString.GetEnumDisplayName(typeof(UIError), UIError.ManualCleanNotSupport); MessageBox.Show(info, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information); } } //色序初始化 panelColorMask.SuspendLayout(); panelColorMask.Controls.Clear(); if (bColorJet) { for (int n = 0; n < sp.nColorNum / Math.Abs(sp.nOneHeadDivider); n++) { RadioButton colorBox = new RadioButton(); colorBox.Text = string.Format("CH{0}", n + 1); //((ColorEnum_Short) sp.eColorOrder[n]).ToString(); colorBox.TextAlign = ContentAlignment.MiddleLeft; colorBox.AutoSize = true; panelColorMask.Controls.Add(colorBox); } } else { for (int n = 0; n < sp.nColorNum; n++) { CheckBox colorBox = new CheckBox(); colorBox.Text = string.Format("CH{0}", n + 1); //((ColorEnum_Short) sp.eColorOrder[n]).ToString(); colorBox.TextAlign = ContentAlignment.MiddleLeft; colorBox.AutoSize = true; panelColorMask.Controls.Add(colorBox); } } panelColorMask.ResumeLayout(false); if (bColorJet) { //ColorJet 通用参数 UIPreference.SetValueAndClampWithMinMax(this.m_NumericUpDownXStartPos, m_CurrentUnit, _manualCleanParamData.nXStartPos / m_sPrinterProperty.fPulsePerInchX); m_ComboBoxHeaderNumPerTime.Items.Clear();//每次清洗喷头数初始化 for (int n = 1; n <= sp.nHeadNumPerGroupY; n++) { m_ComboBoxHeaderNumPerTime.Items.Add(n); } m_ComboBoxHeaderNumPerTime.SelectedIndex = 0; //ColorJet A+系统参数 { UIPreference.SetValueAndClampWithMinMax(this.numericOriginOffset, _manualCleanParamData.OriginOffset); UIPreference.SetValueAndClampWithMinMax(this.numericSpeed, _manualCleanParamData.ySpeedHz); UIPreference.SetValueAndClampWithMinMax(this.numericDelayTime, _manualCleanParamData.yZeroDelay); checkBoxFunctionOn.Checked = _manualCleanParamData.DisableFlag == 0; } //UIPreference.SetValueAndClampWithMinMax(this.numCleanBeltTime, _manualCleanParamData.cleanBeltOutTime/1000f); } }
public void OnPrinterSettingChange(SPrinterSetting ss, SPrinterProperty sp) { m_PrinterSetting = ss; //Printer Setting backup if (bALLWIN) { EpsonLCD.GetALLWINCleanParam(ref _allwinData); } if (bColorJet) { if (EpsonLCD.GetManualCleanParam(ref _manualCleanParamData) == false) { string info = ResString.GetEnumDisplayName(typeof(UIError), UIError.ManualCleanNotSupport); MessageBox.Show(info, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information); } } //色序初始化 panelColorMask.SuspendLayout(); panelColorMask.Controls.Clear(); for (int n = 0; n < sp.nColorNum; n++) { if (bColorJet) { RadioButton colorBox = new RadioButton(); colorBox.Text = string.Format("CH{0}", n + 1);//((ColorEnum_Short) sp.eColorOrder[n]).ToString(); colorBox.TextAlign = ContentAlignment.MiddleLeft; colorBox.AutoSize = true; panelColorMask.Controls.Add(colorBox); } else { CheckBox colorBox = new CheckBox(); colorBox.Text = string.Format("CH{0}", n + 1);//((ColorEnum_Short) sp.eColorOrder[n]).ToString(); colorBox.TextAlign = ContentAlignment.MiddleLeft; colorBox.AutoSize = true; panelColorMask.Controls.Add(colorBox); } } panelColorMask.ResumeLayout(false); if (bALLWIN) { UIPreference.SetValueAndClampWithMinMax(this.numericXAxisPos, _allwinData.xPos); UIPreference.SetValueAndClampWithMinMax(this.numericBladeYMobileDistance, _allwinData.yPos); UIPreference.SetValueAndClampWithMinMax(this.numericScrapPlatformZPos, _allwinData.zPos); UIPreference.SetValueAndClampWithMinMax(this.numericBladeCleanDuration, _allwinData.CleanPumpTime); } }
public void OnPrinterSettingChange(SPrinterSetting ss, SPrinterProperty sp) { m_PrinterSetting = ss; //Printer Setting backup if (bColorJet) { if (EpsonLCD.GetManualCleanParam(ref _manualCleanParamData) == false) { string info = ResString.GetEnumDisplayName(typeof(UIError), UIError.ManualCleanNotSupport); MessageBox.Show(info, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information); } } UIPreference.SetValueAndClampWithMinMax(this.numericWetWaitTime, _manualCleanParamData.autoWetWaitTime); checkBoxWetFlag.Checked = _manualCleanParamData.autoWetFlag == 1; UIPreference.SetValueAndClampWithMinMax(this.numericSpeed, _manualCleanParamData.ySpeedHz); UIPreference.SetValueAndClampWithMinMax(this.numericDelayTime, _manualCleanParamData.yZeroDelay); checkBoxFunctionOn.Checked = _manualCleanParamData.DisableFlag == 0; UIPreference.SetValueAndClampWithMinMax(this.numCleanBeltTime, _manualCleanParamData.cleanBeltOutTime); UIPreference.SetValueAndClampWithMinMax(this.numericPressInkTime, _manualCleanParamData.pressInkTime); UIPreference.SetValueAndClampWithMinMax(this.numericWiperCleanStart, _manualCleanParamData.wiperCleanStart); }