Beispiel #1
0
        public PrintingInfo()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            // TODO: Add any initialization after the InitializeComponent call

#if SHIDAO
            this.inkTankStatusControl1.Visible = this.purgeControl1.Visible = true;
#else
            this.inkTankStatusControl1.Visible = this.purgeControl1.Visible = false;
#endif
#if ALLWIN
            maintenanceSystemStatus1.Visible = true;
#else
            maintenanceSystemStatus1.Visible = false;
#endif
            if (PubFunc.IsInDesignMode())
            {
                return;
            }
            if (SPrinterProperty.IsBiHong() && UIFunctionOnOff.SwapXwithY)
            {
                m_PrintPreview.Rotate = RotateFlipType.Rotate90FlipNone;
            }

            if (UIFunctionOnOff.PreviewRotate180)
            {
                m_PrintPreview.Rotate = RotateFlipType.Rotate180FlipNone;
            }
        }
Beispiel #2
0
        public void OnPrinterPropertyChange(SPrinterProperty sp)
        {
            m_rsPrinterPropery = sp;
            m_bSpectra         = (sp.ePrinterHead == PrinterHeadEnum.Spectra_S_128);
            m_bKonic512        = SPrinterProperty.IsKonica512(sp.ePrinterHead);
            if (CheckComponentChange(sp))
            {
                m_HeadNum = sp.nHeadNum;
                if (m_bKonic512)
                {
                    m_HeadNum /= sp.nHeadNumPerColor;
                    if (sp.fHeadAngle != 0)
                    {
                        this.labelHeadAngle.Visible = this.m_numHeadAngle.Visible = this.m_numHeadAngle.Enabled = true;
                    }
                }

                //m_HeadNum = MAX_CHANAL;
                m_StartHeadIndex = 0;
                m_pMap           = new byte[MAX_CHANAL]; //(byte[])sp.pElectricMap.Clone();
                for (int i = 0; i < MAX_CHANAL; i++)
                {
#if false
                    m_pMap[i] = (byte)(MAX_CHANAL / nmap_input - 1 - m_pMap[i]);                   //(byte)(i*3 +  nStartIndex);
#else
                    m_pMap[i] = (byte)i;
#endif
                }
                CreateComponent();
                LayoutComponent();
                AppendComponent();
            }
        }
Beispiel #3
0
        public void OnPrinterPropertyChange(SPrinterProperty sp)
        {
            m_sPrinterProperty = sp;
            fPulsePerInchX     = sp.fPulsePerInchX;

            //bool isSimpleUv = SPrinterProperty.IsSimpleUV();
            bool bshowReadyUvSet = PubFunc.GetUserPermission() == (int)UserPermission.SupperUser;

            m_checkbox_autoSwitchMode.Visible =
                label6.Visible             = cmb_UvLightType.Visible =
                    groupBox_Ready.Visible = bshowReadyUvSet;
            Type enumtype = typeof(UvLightType);

            UvLightType[] valse = (UvLightType[])Enum.GetValues(enumtype);
            for (int i = 0; i < valse.Length; i++)
            {
                string item = ResString.GetEnumDisplayName(enumtype, valse[i]);
                this.cmb_UvLightType.Items.Add(item);
            }
            groupBox_UVPower.Visible = SPrinterProperty.IsGongZengUv();

            groupBoxUVOffset.Visible = PubFunc.IsSupportUVOffsetDistance();

            if (groupBox_UVPower.Visible == false)
            {
                groupBoxUVOffset.Location = groupBox_UVPower.Location;
            }
        }
Beispiel #4
0
        public void OnPrinterPropertyChange(SPrinterProperty sp)
        {
            bool isT50 = SPrinterProperty.IsFloraT50();

            panelSuckEnd.Visible             =
                panelCappingY.Visible        =
                    label7.Visible           =
                        numPreOffset.Visible = isT50;
            panelCleanMotorSpeed.Visible     =
                panelCleanSlotCount.Visible  = panelCleanSlotSpace.Visible = !isT50;
            numPreOffset.Minimum             = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, 0));
            numPreOffset.Maximum             = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, sp.fMaxPaperWidth));

            numSuckStartPlace.Minimum = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, 0));
            numSuckStartPlace.Maximum = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, sp.fMaxPaperWidth));
            numSuckEndPlace.Minimum   = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, 0));
            numSuckEndPlace.Maximum   = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, sp.fMaxPaperWidth));
            numCleanPosZ.Minimum      = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, 0));
            numCleanPosZ.Maximum      = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, sp.fMaxPaperWidth));
            numCappingPosZ.Minimum    = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, 0));
            numCappingPosZ.Maximum    = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, sp.fMaxPaperWidth));
            numCappingPosY.Minimum    = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, 0));
            numCappingPosY.Maximum    = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, sp.fMaxPaperHeight));

            numPurgeInkRecoverTime.Minimum = numPurgeInkTime.Minimum = 0;
            numPurgeInkRecoverTime.Maximum = numPurgeInkTime.Maximum = int.MaxValue;
            numCleanSlotCount.Minimum      = 0;
            numCleanSlotSpace.Minimum      = 0;
            numCleanMotorSpeed.Minimum     = 0;

            numScraperStart1.Minimum = numScraperStart2.Minimum = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, 0));
            numScraperStart1.Maximum = numScraperStart2.Maximum = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, sp.fMaxPaperWidth));
        }
Beispiel #5
0
        public void OnPrinterPropertyChanged(SPrinterProperty property)
        {
            _property = property;

            for (int i = 0; i < mainButtons.Count; i++)
            {
                if (i < 2)
                {
                    if (property.nWhiteInkNum > 0 && i < property.nWhiteInkNum)
                    {
                        clolorsLabels[i].Text = string.Format("{0}({1})", property.Get_ColorIndex(i + property.nColorNum - property.nWhiteInkNum), i + 1);
                    }
                    else
                    {
                        clolorsLabels[i].Text  = string.Empty;
                        pumpButtons[i].Visible = clolorsLabels[i].Visible = mainButtons[i].Visible = reservoirsButtons[i].Visible = false;
                    }
                }
                else
                {
                    if (i - 2 < property.nColorNum - property.nWhiteInkNum)
                    {
                        clolorsLabels[i].Text = string.Format("{0}({1})", property.Get_ColorIndex(i - 2), i + 1);
                    }
                    else
                    {
                        clolorsLabels[i].Text  = string.Empty;
                        pumpButtons[i].Visible = clolorsLabels[i].Visible = mainButtons[i].Visible = reservoirsButtons[i].Visible = false;
                    }
                }
            }
        }
Beispiel #6
0
        public void OnPrinterSettingChange(SPrinterSetting ss, SPrinterProperty sp)
        {
            this.manualCleanSetting.OnPrinterSettingChange(ss, sp);
            if (bDocanTextile)
            {
                this.docanManualCleanSetting1.OnPrinterSettingChange(ss, sp);
            }
            if (bColorJet)
            {
                if (bSsystem)
                {
                    colorjetManualCleanSettingS.OnPrinterSettingChange(ss, sp);
                }
                else
                {
                    colorjetManualCleanSettingA1.OnPrinterSettingChange(ss, sp);
                }
            }
            if (bGzGmaHead)
            {
                this.gmaCleanSetting1.OnPrinterSettingChange(ss);
            }

            if (bIsHLC)
            {
                this.hlcCleanSetting1.OnPrinterSettingChange(ss);
            }
            if (bIsPQ)
            {
                this.pqCleanSetting1.OnPrinterSettingChange(ss);
            }
        }
Beispiel #7
0
 public void OnPreferenceChange(UIPreference up)
 {
     try
     {
         if (_printerProperty.EPSONLCD_DEFINED)
         {
             m_epsonBaseSetting.OnPreferenceChange(up);
         }
         else
         {
             m_BaseSetting.OnPreferenceChange(up);
         }
         if (this.m_TabControlSetting.TabPages.Contains(this.m_TabPageCaliSetting))
         {
             m_CalibrationSetting.OnPreferenceChange(up);
         }
         m_PreferenceSetting.OnPreferenceChange(up);
         //m_RealTimeSetting.OnPreferenceChange(up);
         m_MoveSetting.OnPreferenceChange(up);
         spotColorSetting1.OnPreferenceChange(up);
         doublePrintSetting1.OnPreferenceChange(up);
         m_Printer3DSetting.OnPreferenceChange(up);
         userExtensionSetting.OnPreferenceChange(up);
         if (SPrinterProperty.IsJianRui())
         {
             workposSetting1.OnPreferenceChange(up);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Beispiel #8
0
 private bool CheckComponentChange(SPrinterProperty sp)
 {
     if (m_HeadNum != sp.nHeadNum)
     {
         return(true);
     }
     return(false);
 }
        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);
            }
        }
Beispiel #10
0
        public void OnPrinterPropertyChange(SPrinterProperty sp)
        {
            m_allParam.PrinterProperty = sp;
            button_QACode.Visible      = m_allParam.PrinterProperty.ePrinterHead == PrinterHeadEnum.Epson_S2840 || m_allParam.PrinterProperty.ePrinterHead == PrinterHeadEnum.Epson_S2840_WaterInk || m_allParam.PrinterProperty.ePrinterHead == PrinterHeadEnum.EPSON_I3200 || m_allParam.PrinterProperty.ePrinterHead == PrinterHeadEnum.EPSON_S1600_RC_UV;

#if !EpsonLcd
            this.buttonCleanParameter.Visible = false;
#endif
        }
Beispiel #11
0
 public void OnPrinterPropertyChange(SPrinterProperty sp)
 {
     //这里应该按照ripcolororder显示,但目前无法得到ripcolororder
     //this.crossColorY.Text = sp.Get_ColorIndex(0);
     //this.crossColorM.Text = sp.Get_ColorIndex(1);
     //this.crossColorC.Text = sp.Get_ColorIndex(2);
     //this.crossColorK.Text = sp.Get_ColorIndex(3);
     //this.crossColorLc.Text = sp.Get_ColorIndex(4);
     //this.crossColorLm.Text = sp.Get_ColorIndex(5);
 }
Beispiel #12
0
        public void OnPrinterPropertyChange(SPrinterProperty sp)
        {
#if SHIDAO
            inkTankStatusControl1.OnPrinterPropertyChanged(sp);
            purgeControl1.OnPrinterPropertyChanged(sp);
#endif
            //maintenanceSystemStatus1.OnPrinterPropertyChanged(sp);

            //gzPurgeControl1.Visible = SPrinterProperty.IsGongZengUv();
            //gzPurgeControl1.OnPrinterPropertyChanged(sp);
        }
 public void OnPrinterSettingChange(SPrinterSetting ss, SPrinterProperty sp)
 {
     m_PrinterSetting = ss;
     if (EpsonLCD.GetDocanTextileCleanParam(ref _docanTextileParam))
     {
         numericUpDown_xStartPos.Value       = _docanTextileParam.xStartPos;
         numericUpDown_zCLeanPos.Value       = _docanTextileParam.zCLeanPos;
         numericUpDown_PressInkTime.Value    = _docanTextileParam.PressInkTime;
         numericUpDown_ZSensorErrRange.Value = _docanTextileParam.ZSensorErrRange;
         numericUpDown_ZSensorCurVal.Value   = _docanTextileParam.ZSensorCurVal;
     }
 }
Beispiel #14
0
        private void KonicTemperature_Load(object sender, System.EventArgs e)
        {
            if (m_bNewXaar382)
            {
                this.xaarTempertureSetting1.StartTimer();
            }

            if (SPrinterProperty.IsKonic1800i(_printerProperty.ePrinterHead))
            {
                this.Location    = new Point(0, 0);
                this.WindowState = FormWindowState.Maximized;
            }
        }
Beispiel #15
0
        public ManualCleanForm(SPrinterProperty sp)
        {
            InitializeComponent();

            bGzGmaHead = SPrinterProperty.IsGongZeng() &&
                         (sp.ePrinterHead == PrinterHeadEnum.Fujifilm_GMA9905300_5pl ||
                          sp.ePrinterHead == PrinterHeadEnum.Fujifilm_GMA3305300_5pl);
            bColorJet     = PubFunc.IsColorJet_Belt_Textile();
            bSsystem      = CoreInterface.IsS_system();
            bDocanTextile = PubFunc.IsDocan_Belt_Textile();
            bIsHLC        = PubFunc.IsHuiLiCai();
            bIsPQ         = PubFunc.IsPuQi();
        }
Beispiel #16
0
 public void OnPrinterPropertyChange(SPrinterProperty sp)
 {
     bZMeasurSensorSupport = sp.IsZMeasurSupport && !sp.IsALLWIN_FLAT();
     if (bZMeasurSensorSupport && !this.tabControl1.TabPages.Contains(this.tabPage2))
     {
         this.tabControl1.TabPages.Add(this.tabPage2);
     }
     else if (!bZMeasurSensorSupport && this.tabControl1.TabPages.Contains(this.tabPage2))
     {
         this.tabControl1.TabPages.Remove(this.tabPage2);
     }
     uvSetting1.OnPrinterPropertyChange(sp);
 }
Beispiel #17
0
 public void OnPrinterPropertyChange(SPrinterProperty sp)
 {
     _sp = sp;
     numScraperPos.Minimum                     =
         numxDistance.Minimum                  =
             numxStartPos.Minimum              =
                 numYCarryCleanPos.Minimum     =
                     numZCarryCleanPos.Minimum = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, 0));
     numxDistance.Maximum                  =
         numxStartPos.Maximum              =
             numYCarryCleanPos.Maximum     =
                 numZCarryCleanPos.Maximum = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, sp.fMaxPaperWidth));
     numScraperPos.Maximum                 = int.MaxValue;
 }
        public void OnPrinterPropertyChange(SPrinterProperty sp)
        {
            m_sPrinterProperty = sp;

            numHomePosX.Minimum        =
                numCappingPosX.Minimum = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, 0));
            numHomePosX.Maximum        =
                numCappingPosX.Maximum = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, sp.fMaxPaperWidth));
            numHomePosY.Minimum        =
                numCappingPosY.Minimum = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, 0));
            numHomePosY.Maximum        =
                numCappingPosY.Maximum = new Decimal(UIPreference.ToDisplayLength(m_CurrentUnit, sp.fMaxPaperHeight));
            this.isDirty = false;
        }
Beispiel #19
0
        public MoveSetting()
        {
            // This call is required by the Windows Form Designer.
            InitializeComponent();

            // TODO: Add any initialization after the InitializeComponent call
            if (PubFunc.IsInDesignMode())
            {
                return;
            }
            bool isVisible = (!PubFunc.IsFhzl3D() && !SPrinterProperty.IsSimpleUV() && (PubFunc.GetUserPermission() == (int)UserPermission.SupperUser)) || PubFunc.IsZhuoZhan();

            button4Up.Visible = button4Down.Visible = label1.Visible = m_ComboBox4speed.Visible = isVisible;
        }
Beispiel #20
0
        public void OnPrinterStatusChanged(JetStatusEnum status)
        {
            UpdateButtonStates(status);
            SetPrinterStatusChanged(status);
            if (status == JetStatusEnum.Error)
            {
                OnErrorCodeChanged(CoreInterface.GetBoardError());

                int        errorCode  = CoreInterface.GetBoardError();
                SErrorCode sErrorCode = new SErrorCode(errorCode);
                if (SErrorCode.IsOnlyPauseError(errorCode))
                {
                    string errorInfo = SErrorCode.GetInfoFromErrCode(errorCode);

                    if (
                        MessageBox.Show(errorInfo, ResString.GetProductName(), MessageBoxButtons.RetryCancel,
                                        MessageBoxIcon.Exclamation) == DialogResult.Retry)
                    {
                        CoreInterface.Printer_Resume();
                    }
                }
            }
            else
            {
                OnErrorCodeChanged(0);
            }
            if (status != JetStatusEnum.PowerOff && status != JetStatusEnum.Initializing && m_IsFATAL == false)
            {
                if (SPrinterProperty.IsGongZeng() || SPrinterProperty.IsDocanPrintMode() || SPrinterProperty.IsRuiZhi()) // 此功能按 厂商限定
                {
                    byte[]           infos = new byte[19];
                    BYHX_SL_RetValue ret   = BYHXSoftLock.GetDongleInfo(ref infos);
                    if (ret == BYHX_SL_RetValue.SUCSESS)
                    {
                        byte[] dtV = new byte[4];
                        Buffer.BlockCopy(infos, 4, dtV, 0, dtV.Length);
                        uint boardId = BitConverter.ToUInt32(dtV, 0);
                        if (CoreInterface.IsFatal(boardId))
                        {
                            m_IsFATAL = true;
                        }
                    }
                }
                else
                {
                    m_IsFATAL = true;
                }
            }
        }
Beispiel #21
0
        public void OnPrinterSettingChange(AllParam allParam)
        {
            try
            {
                SPrinterSetting ss            = allParam.PrinterSetting;
                EpsonExAllParam epsonAllparam = allParam.EpsonAllParam;

                if (allParam.PrinterProperty.EPSONLCD_DEFINED)
                {
                    m_epsonBaseSetting.OnPrinterSettingChange(ss, epsonAllparam);
                }
                else
                {
                    m_BaseSetting.OnPrinterSettingChange(ss);
                }

                m_BaseSetting.OnExtendedSettingsChange(allParam.ExtendedSettings);
                if (this.m_TabControlSetting.TabPages.Contains(this.m_TabPageCaliSetting))
                {
                    m_CalibrationSetting.OnPrinterSettingChange(allParam);
                }
                m_SeviceSetting.OnPrinterSettingChange(ss, epsonAllparam.sCaliConfig);
                m_SeviceSetting.OnServiceSettingChange(allParam.SeviceSetting, epsonAllparam.sCaliConfig);
                //m_RealTimeSetting.OnPrinterSettingChange(ss);
                m_MoveSetting.OnPrinterSettingChange(ss);
                spotColorSetting1.OnPrinterSettingChange(ss);
                spotColorSetting1.OnExtendedSettingsChange(allParam.ExtendedSettings);
                this.doublePrintSetting1.OnScorpionSettingsChanged(allParam.DoubleSidePrint);
                this.m_Printer3DSetting.OnPrinterSettingChange(allParam);
                this.userExtensionSetting.OnPrinterSettingChange(allParam);
                defineUVPowerLevel1.OnPrinterSettingChange(allParam);

                closeColorNozzle1.OnPrinterSettingChange(allParam);

                customCloseNozzle1.OnPrinterSettingChange(ss);
                if (SPrinterProperty.IsJianRui())
                {
                    workposSetting1.OnPrinterSettingChange(allParam.PrinterSetting);
                }
                if (PubFunc.SupportDebugQuality())
                {
                    debugQuality1.OnPrinterSettingChange(allParam);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Beispiel #22
0
 public void OnPrinterPropertyChange(SPrinterProperty sp)
 {
     _property = sp;
     for (int i = 0; i < clolorsLabels.Count; i++)
     {
         if (i < _property.nColorNum - _property.nWhiteInkNum)
         {
             //clolorsLabels[i].Text = _property.Get_ColorIndex(i);
         }
         else
         {
             //clolorsLabels[i].Text = string.Empty;
             clolorsInkMl[i].Visible = clolorsLabels[i].Visible = clolorsInk[i].Visible = false;
         }
     }
 }
Beispiel #23
0
        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);
            }
        }
Beispiel #24
0
        public void OnPrinterPropertyChanged(SPrinterProperty property)
        {
            _property = property;

            for (int i = 0; i < this.colorLabels.Count; i++)
            {
                if (i < property.nColorNum)
                {
                    colorLabels[i].Text = string.Format("{0}({1})",
                                                        property.Get_ColorIndex(i), property.nColorNum - i);
                    colorFlags[i].BackColor = GetBackColorByIndex(i);
                }
                else
                {
                    colorFlags[i].Visible = tempInputs[i].Visible = colorLabels[i].Visible = false;
                }

#if false
                if (i < 2)
                {
                    if (property.nWhiteInkNum > 0 && i < property.nWhiteInkNum)
                    {
                        colorLabels[i].Text = string.Format("{0}({1})",
                                                            property.Get_ColorIndex(i + property.nColorNum - property.nWhiteInkNum), i + 1);
                        colorFlags[i].BackColor = GetBackColorByIndex(i + property.nColorNum - property.nWhiteInkNum);
                    }
                    else
                    {
                        colorFlags[i].Visible = tempInputs[i].Visible = colorLabels[i].Visible = false;
                    }
                }
                else
                {
                    if (i - 2 < property.nColorNum - property.nWhiteInkNum)
                    {
                        colorLabels[i].Text     = string.Format("{0}({1})", property.Get_ColorIndex(i - 2), i + 1);
                        colorFlags[i].BackColor = GetBackColorByIndex(i - 2);
                    }
                    else
                    {
                        colorFlags[i].Visible = tempInputs[i].Visible = colorLabels[i].Visible = false;
                    }
                }
#endif
            }
            LoadData();
        }
Beispiel #25
0
 //////////////////////////////////////////////////////////////////////////////////////////////////////////////
 ///
 /////////////////////////////////////////////////////////////////////////////////////////////////////////////
 ///
 ///
 public void OnPrinterPropertyChange(SPrinterProperty sp)
 {
     if (SPrinterProperty.IsEpson(sp.ePrinterHead))
     {
         this.m_CheckBoxBeepBeforePrint.Visible = false;
     }
     if (sp.EPSONLCD_DEFINED)
     {
         m_labelLang.Visible = m_ComboBoxLang.Visible = false;
         m_CheckBoxDelJobAfterPrint.Location = m_labelUnit.Location;
         m_labelUnit.Location    = m_labelLang.Location;
         m_ComboBoxUnit.Location = m_ComboBoxLang.Location;
     }
     this.checkBoxShowAttention.Visible        = sp.IsDisplayForm();
     this.checkBoxShowMeasurBeforPrint.Visible = sp.IsZMeasurSupport;
     this.isDirty = false;
 }
        public void OnPrinterPropertyChanged(SPrinterProperty property)
        {
            _property = property;
            for (int i = 0; i < mainButtons.Count; i++)
            {
                if (i < property.nColorNum)
                {
                    clolorsLabels[i].Text = string.Format("{0}({1})",
                                                          property.Get_ColorIndex(property.nColorNum - (1 + i)), i + 1);//约定从右往左显示,与校准向导相反
                }
                else
                {
                    clolorsLabels[i].Text         = string.Empty;
                    pumtTimeoutButtons[i].Visible = purgeButtons[i].Visible = tempTextBoxs[i].Visible =
                        pumpButtons[i].Visible    = clolorsLabels[i].Visible = mainButtons[i].Visible = reservoirsButtons[i].Visible = false;
                }
#if false
                if (i < 2)
                {
                    if (property.nWhiteInkNum > 0 && i < property.nWhiteInkNum)
                    {
                        clolorsLabels[i].Text = property.Get_ColorIndex(i + property.nColorNum - property.nWhiteInkNum);
                    }
                    else
                    {
                        clolorsLabels[i].Text         = string.Empty;
                        pumtTimeoutButtons[i].Visible = purgeButtons[i].Visible = tempTextBoxs[i].Visible =
                            pumpButtons[i].Visible    = clolorsLabels[i].Visible = mainButtons[i].Visible = reservoirsButtons[i].Visible = false;
                    }
                }
                else
                {
                    if (i - 2 < property.nColorNum - property.nWhiteInkNum)
                    {
                        clolorsLabels[i].Text = property.Get_ColorIndex(i - 2);
                    }
                    else
                    {
                        clolorsLabels[i].Text         = string.Empty;
                        pumtTimeoutButtons[i].Visible = purgeButtons[i].Visible = tempTextBoxs[i].Visible =
                            pumpButtons[i].Visible    = clolorsLabels[i].Visible = mainButtons[i].Visible = reservoirsButtons[i].Visible = false;
                    }
                }
#endif
            }
        }
Beispiel #27
0
        public void OnPrinterPropertyChange(SPrinterProperty sp)
        {
            colorjetManualCleanSettingS.Visible  = bColorJet && bSsystem && !bDocanTextile && !bIsHLC;
            colorjetManualCleanSettingA1.Visible = bColorJet && !bSsystem && !bDocanTextile && !bIsHLC;
            manualCleanSetting.Visible           = !bColorJet && !bDocanTextile && !bIsHLC;
            docanManualCleanSetting1.Visible     = bDocanTextile;
            gmaCleanSetting1.Visible             = bGzGmaHead;
            hlcCleanSetting1.Visible             = bIsHLC;
            pqCleanSetting1.Visible = bIsPQ;

            gmaCleanSetting1.Dock =
                colorjetManualCleanSettingS.Dock        =
                    colorjetManualCleanSettingA1.Dock   =
                        hlcCleanSetting1.Dock           =
                            pqCleanSetting1.Dock        =
                                manualCleanSetting.Dock = DockStyle.Fill;

            this.manualCleanSetting.OnPrinterPropertyChange(sp);
            this.docanManualCleanSetting1.OnPrinterPropertyChange(sp);
            if (bColorJet)
            {
                if (bSsystem)
                {
                    colorjetManualCleanSettingS.OnPrinterPropertyChange(sp);
                }
                else
                {
                    colorjetManualCleanSettingA1.OnPrinterPropertyChange(sp);
                }
            }
            if (bGzGmaHead)
            {
                this.gmaCleanSetting1.OnPrinterPropertyChange(sp);
            }

            if (bIsHLC)
            {
                this.hlcCleanSetting1.OnPrinterPropertyChange(sp);
            }

            if (bIsPQ)
            {
                this.pqCleanSetting1.OnPrinterPropertyChange(sp);
            }
        }
Beispiel #28
0
        public void OnPreferenceChange(UIPreference up)
        {
            if (m_CurrentUnit != up.Unit)
            {
                OnUnitChange(up.Unit);
                m_CurrentUnit = up.Unit;
                //				this.isDirty = false;
            }

            if (SPrinterProperty.IsFloraUv())
            {
                numericUpDownMesureXCoor.Minimum = (decimal)UIPreference.ToDisplayLength(m_CurrentUnit, (float)(40 / 2.54));
                numericUpDownMesureXCoor.Maximum = (decimal)UIPreference.ToDisplayLength(m_CurrentUnit, (float)(350 / 2.54));

                numericUpDown7.Minimum = (decimal)UIPreference.ToDisplayLength(m_CurrentUnit, (float)(5 / 2.54));
                numericUpDown7.Maximum = (decimal)UIPreference.ToDisplayLength(m_CurrentUnit, (float)(155 / 2.54));
            }
        }
        public void OnPrinterPropertyChange(SPrinterProperty sp)
        {
            if (sp.IsDocan() || sp.bSupportDoubleMachine)
            {
                m_CheckBoxFlatBed.Visible = true;
            }
            else
            {
                m_CheckBoxFlatBed.Visible = false;
            }
//			if(sp.bSupportYEncoder)
//			{
//				m_CheckBoxUseYEncoder.Visible = true;
//			}
//			else
            {
                m_CheckBoxUseYEncoder.Visible = false;
            }
        }
Beispiel #30
0
 public void OnGetProperty(ref SPrinterProperty sp, ref bool bChangeProperty)
 {
     bChangeProperty = false;
     if (sp.eSpeedMap[0] != (byte)m_ComboBoxHighSpeed.SelectedIndex)
     {
         bChangeProperty = true;
         sp.eSpeedMap[0] = (byte)m_ComboBoxHighSpeed.SelectedIndex;
     }
     if (sp.eSpeedMap[1] != (byte)m_ComboBoxMiddleSpeed.SelectedIndex)
     {
         bChangeProperty = true;
         sp.eSpeedMap[1] = (byte)m_ComboBoxMiddleSpeed.SelectedIndex;
     }
     if (sp.eSpeedMap[2] != (byte)m_ComboBoxLowSpeed.SelectedIndex)
     {
         bChangeProperty = true;
         sp.eSpeedMap[2] = (byte)m_ComboBoxLowSpeed.SelectedIndex;
     }
 }