Exemplo n.º 1
0
        void RecalculateSections()
        {
            int locY = 50;
            // disable once ConvertIfStatementToNullCoalescingExpression
            if (reportSettings == null) {
                reportSettings = host.Container.Components[1] as ReportSettings;
            }

            foreach (BaseSection section in sections){
                section.Location = new Point(reportSettings.LeftMargin,locY);
                locY = locY + section.Size.Height + DesignerGlobals.GabBetweenSection;
            }
            Control.Invalidate();
        }
Exemplo n.º 2
0
 void InitializeGUI()
 {
     reportSettings = host.Container.Components[1] as ReportSettings;
     InitializeRootReportModel();
 }