Esempio n. 1
0
		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());
        }
Esempio n. 2
0
        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;
            }
        }