Esempio n. 1
0
        public void SetPrinterStatusChanged(JetStatusEnum status, bool waitingPauseBetweenLayers = false)
        {
#if SHIDAO
            inkTankStatusControl1.OnPrinterStatusChanged(status);
            purgeControl1.OnPrinterStatusChanged(status);
#endif
            gzPurgeControl1.OnPrinterStatusChanged(status);
        }
Esempio n. 2
0
        public void SetPrinterStatusChanged(JetStatusEnum status, bool waitingPauseBetweenLayers = false)
        {
            switch (status)
            {
            case JetStatusEnum.Pause:
            case JetStatusEnum.Aborting:
                CalcuPrintTime.Stop();
                break;

            case JetStatusEnum.Busy:
                CalcuPrintTime.Start();
                break;
            }
            string strtext = ResString.GetEnumDisplayName(typeof(JetStatusEnum), status);

            if (PubFunc.Is3DPrintMachine() && waitingPauseBetweenLayers && status == JetStatusEnum.Ready)
            {
                status  = JetStatusEnum.Pause;
                strtext = ResString.GetResString("PauseBetweenLayersStatus");// 层间暂停
            }

            if (status == JetStatusEnum.Error)
            {
                strtext += "\n" + "[" + CoreInterface.GetBoardError().ToString("X8") + "]";
            }
            this.crystalLabel_Status.Text = strtext;

#if SHIDAO
            inkTankStatusControl1.OnPrinterStatusChanged(status);
            purgeControl1.OnPrinterStatusChanged(status);
#endif
            if (m_bShowGzPurgeControl) // gzPurgeControl1控件按最大8色设计,自由布局下不显示则不进行初始化
            {
                gzPurgeControl1.OnPrinterStatusChanged(status);
            }
        }