示例#1
0
        public UIElement[] getPrintPages(double width, double height)
        {
            List <UIElement> pages = new List <UIElement>();
            ChromPage        chromPage;
            DateTime         timestamp = DateTime.Now;
            int timei = -1;

            if (currentView == ViewType.Time)
            {
                timei = selectedTimei;
            }

            if (currentView != ViewType.Setup)
            {
                // page 1
                chromPage = new ChromPage(width, height, timestamp, ChromPageContent.Chrom, 1, 2);
                chromPage.chromView.visOutSet = view.getChromVisOutSet();
                pages.Add(chromPage);

                // page 2
                chromPage = new ChromPage(width, height, timestamp, ChromPageContent.Params, 2, 2);
                chromPage.createReport(getInParams(), getOutParams(timei));
                pages.Add(chromPage);
            }
            return(pages.ToArray());
        }
示例#2
0
        public ReportWindow(double width, double height, TextParamList inParamList, string outParams)
        {
            InitializeComponent();

            chromPage           = new ChromPage(width, height, new DateTime(), ChromPageContent.Params, 0, 0);
            chromPage.canvas    = reportCanvas;
            reportCanvas.Width  = width;
            reportCanvas.Height = height;
            chromPage.createReport(inParamList, outParams);

            report = inParamList.ToString();
            if (outParams != "")
            {
                if (report != "")
                {
                    report += "\n";
                }
                report += "Output parameters\n";
                report += outParams.Replace("<b>", "").Replace("</b>", "");
            }
        }