public SimpleLayout() { InitializeComponent(); InitializeSimpleLayout(); // Add default sections sections = new CollectionSections(); sections.Add(new Title()); sections.Add(header = new Header()); sections.Add(new Sum()); sections.Add(new Footer()); }
public SimpleLayout(params Section[] sections) { InitializeComponent(); this.sections = new CollectionSections(); foreach (Section section in sections) { this.sections.Add(section); if (section is Header) header = (Header)section; } }