public void OnPrinterPropertyChange(SPrinterProperty sp)
 {
     m_sPrinterProperty = sp;
     m_NumericUpDownXStartPos.Minimum = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, 0));
     m_NumericUpDownXStartPos.Maximum = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, sp.fMaxPaperWidth));
 }
        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 S系统参数
                {
                    UIPreference.SetValueAndClampWithMinMax(this.numericWetWaitTime, _manualCleanParamData.autoWetWaitTime);
                    checkBoxWetFlag.Checked = _manualCleanParamData.autoWetFlag == 1;
                }
                //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);
            }
        }
Ejemplo n.º 3
0
 public void OnPreferenceChange(UIPreference up)
 {
     OnUnitChange(up.Unit);
     _mCurrentUnit = up.Unit;
 }
Ejemplo n.º 4
0
 public void OnGetExtendedSettings(ref PeripheralExtendedSettings ss)
 {
     ss.StepAdjust = UIPreference.ToInchLength(_mCurrentUnit, (float)numAdjustStep.Value);//
 }
Ejemplo n.º 5
0
 public void OnExtendedSettingsChange(PeripheralExtendedSettings ss)
 {
     numAdjustStep.Value = new decimal(UIPreference.ToDisplayLength(_mCurrentUnit, ss.StepAdjust)); //should control by UI tony not test
 }
Ejemplo n.º 6
0
 public void OnGetPrinterSetting(ref SPrinterSetting ss)
 {
     ss.sExtensionSetting.fXRightHeadToCurosr = UIPreference.ToInchLength(_mCurrentUnit, (float)numCursorPosX.Value); //
     ss.sExtensionSetting.fYRightHeadToCurosr = UIPreference.ToInchLength(_mCurrentUnit, (float)numCursorPosY.Value); //
 }
Ejemplo n.º 7
0
 public void OnPrinterSettingChange(SPrinterSetting ss)
 {
     numCursorPosX.Value = (decimal)UIPreference.ToDisplayLength(_mCurrentUnit, ss.sExtensionSetting.fXRightHeadToCurosr);
     numCursorPosY.Value = (decimal)UIPreference.ToDisplayLength(_mCurrentUnit, ss.sExtensionSetting.fYRightHeadToCurosr);
 }