Пример #1
0
		public AbstractPreviewCommand(ReportModel model, ICSharpCode.Reports.Core.ReportViewer.PreviewControl reportViewer)
		{
			if (model == null) {
				throw new  ArgumentNullException ("model");
			}
			if (reportViewer == null) {
				throw new ArgumentNullException("reportViewer");
			}
			
			this.model = model;
			this.reportViewer = reportViewer;
		}
		public ReportViewerSecondaryView(ReportDesignerLoader designerLoader,IViewContent content):base(content)
		{
			if (designerLoader == null) {
				throw new ArgumentNullException("designerLoader");
			}
			if (content == null) {
				throw new ArgumentNullException("content");
			}
			this.designerLoader = designerLoader;
			this.control = new ICSharpCode.Reports.Core.ReportViewer.PreviewControl();
			this.control.Messages = new ReportViewerMessages();
			this.control.PreviewLayoutChanged += OnPreviewLayoutChanged;
			base.TabPageText = ResourceService.GetString("SharpReport.ReportViewer");
		}
Пример #3
0
        public AbstractPreviewCommand(ReportModel model, ICSharpCode.Reports.Core.ReportViewer.PreviewControl reportViewer)
        {
            if (model == null)
            {
                throw new  ArgumentNullException("model");
            }
            if (reportViewer == null)
            {
                throw new ArgumentNullException("reportViewer");
            }

            this.model        = model;
            this.reportViewer = reportViewer;
        }
 public ReportViewerSecondaryView(ReportDesignerLoader designerLoader, IViewContent content) : base(content)
 {
     if (designerLoader == null)
     {
         throw new ArgumentNullException("designerLoader");
     }
     if (content == null)
     {
         throw new ArgumentNullException("content");
     }
     this.designerLoader                = designerLoader;
     this.control                       = new ICSharpCode.Reports.Core.ReportViewer.PreviewControl();
     this.control.Messages              = new ReportViewerMessages();
     this.control.PreviewLayoutChanged += OnPreviewLayoutChanged;
     base.TabPageText                   = ResourceService.GetString("SharpReport.ReportViewer");
 }
Пример #5
0
 public AsyncPushModelPreviewCommand(ReportModel model, ICSharpCode.Reports.Core.ReportViewer.PreviewControl reportViewer) : base(model, reportViewer)
 {
 }