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(); }
void InitializeGUI() { reportSettings = host.Container.Components[1] as ReportSettings; InitializeRootReportModel(); }