コード例 #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;
            }
        }
コード例 #2
0
ファイル: PrintingInfo.cs プロジェクト: 6555355/Scan_yan1
        public PrintingInfo()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            if (PubFunc.IsInDesignMode())//设计时支持
            {
                return;
            }
            // TODO: Add any initialization after the InitializeComponent call
            if (SPrinterProperty.IsBiHong() && UIFunctionOnOff.SwapXwithY)
            {
                m_PrintPreview.Rotate = RotateFlipType.Rotate90FlipNone;
            }
            if (UIFunctionOnOff.PreviewRotate180)
            {
                m_PrintPreview.Rotate = RotateFlipType.Rotate180FlipNone;
            }
        }