Inheritance: TimeBlock
Esempio n. 1
0
        public SchoolDay(DateTime moment) {
            Lesson1 = new Lesson(moment);
            Break1 = new ShortBreak(moment);
            Lesson2 = new Lesson(moment);
            Break2 = new LargeBreak(moment);
            Lesson3 = new Lesson(moment);
            Break3 = new ShortBreak(moment);
            Lesson4 = new Lesson(moment);

            base.Add(Lesson1);
            base.Add(Break1);
            base.Add(Lesson2);
            base.Add(Break2);
            base.Add(Lesson3);
            base.Add(Break3);
            base.Add(Lesson4);
        }
Esempio n. 2
0
        public SchoolDay(DateTime moment)
        {
            Lesson1 = new Lesson(moment);
            Break1  = new ShortBreak(moment);
            Lesson2 = new Lesson(moment);
            Break2  = new LargeBreak(moment);
            Lesson3 = new Lesson(moment);
            Break3  = new ShortBreak(moment);
            Lesson4 = new Lesson(moment);

            base.Add(Lesson1);
            base.Add(Break1);
            base.Add(Lesson2);
            base.Add(Break2);
            base.Add(Lesson3);
            base.Add(Break3);
            base.Add(Lesson4);
        }