コード例 #1
0
        public void RedrawReport(Context c)
        {
            if (Zoom != 1)
            {
                c.Scale(Zoom, Zoom);
                Width  = (int)(Report.Width * Zoom);
                Height = (int)(Report.Height * Zoom);
            }

            if (SelectedTool != null)
            {
                SelectedTool.OnBeforeDraw(c);
            }
            for (int i = 0; i < SectionViews.Count; i++)
            {
                var renderedSection = SectionViews [i];
                renderedSection.Render(c);
            }
            if (SelectedTool != null)
            {
                SelectedTool.OnAfterDraw(c);
            }
        }