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