//		private string pagesCreatedMessage;
		
		#region Constructor
		
		public PreviewControl(){
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			this.SetStyle(ControlStyles.DoubleBuffer |
			              ControlStyles.UserPaint |
			              ControlStyles.AllPaintingInWmPaint |
			              ControlStyles.ResizeRedraw,
			              true);
			this.UpdateStyles();
			InitZoomCombo ();
			
			previewRenderer = PreviewRenderer.CreateInstance();
			this.CheckEnable();
			this.printButton.Enabled = false;
			this.printButton.ImageTransparentColor = Color.White;
			
			this.pdfButton.Enabled = false;
			this.pdfButton.ImageTransparentColor = Color.White;
			
			this.firstPageButton.Enabled = false;
			this.firstPageButton.ImageTransparentColor = Color.White;
			
			this.forwardButton.Enabled = false;
			this.forwardButton.ImageTransparentColor = Color.White;
			
			this.backButton.Enabled = false;
			this.backButton.ImageTransparentColor = Color.White;
			
			this.lastPageButton.Enabled = false;
			this.lastPageButton.ImageTransparentColor = Color.White;
			this.numericToolStripTextBox2.Navigate += new EventHandler <PageNavigationEventArgs> (OnNavigate);
		}
Exemple #2
0
		public PreviewControl()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw, true);
			this.UpdateStyles();
			runner = new ExportRunner();
			InitZoomCombo();
			previewRenderer = PreviewRenderer.CreateInstance();
			this.CheckEnable();
			SetTransparentBackground();
			this.numericToolStripTextBox2.Navigate += new EventHandler<PageNavigationEventArgs>(OnNavigate);
		}