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); } }