コード例 #1
0
        public PreviewForm(Form parentForm, ReportStateDescription description, bool disposeResponsible)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.MdiParent = parentForm;
            if (null == description.Report)
            {
                ReportsGenerator generator = App.Current.ReportGenerator;
                generator.RunReport(description);
            }
            description.IsLocked = true;

            arvMain.Document = description.Report.Document;
            this.Text        = description.Report.Document.Name;

            _description        = description;
            _disposeResponsible = disposeResponsible;
        }