Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var courseList = new List<Course>();

            var teacher = new Teacher();
            teacher.ReplacementLesson = 16;
            teacher.Deduction = 1.25;
            teacher.AdditionalHours = 0.6;
            teacher.PH1 = 1;
            teacher.PH2 = 1;

            var lg2 = new Course(8, 2);
            lg2.TeachingUnit = 23;
            courseList.Add(lg2);

            var lg3 = new Course(8, 2);
            lg3.TeachingUnit = 23;
            courseList.Add(lg3);

            var lg4 = new Course(8, 2);
            lg4.TeachingUnit = 25;
            courseList.Add(lg4);

            //courseList.Add(new Course(8, 2));
            var scheiss = new Course(8, 2);
            scheiss.TeachingUnit = 23;
            var scheissVierte = new Course(7, 2);
            scheissVierte.IsFourthGrade = true;
            scheissVierte.TeachingUnit = 5;
            scheiss.FourthGrade = scheissVierte;
            courseList.Add(scheiss);

            var dispTest = new TeacherDisplay(teacher, courseList);
            Console.WriteLine("Summe: " + dispTest.SummLessons.ToString());
            Console.WriteLine("Überstd: " + dispTest.SummOvertime.ToString());
            Console.WriteLine("MDL: " + dispTest.MDL.ToString());
            Console.WriteLine("MDL - 10%: " + dispTest.MDLwithCoefficient.ToString());
            Console.WriteLine("esa: " + dispTest.ESA.ToString());
            Console.WriteLine("emdl: " + dispTest.EMDL.ToString());
            Console.WriteLine("emdl-10%: " + dispTest.EMDLwithCoefficient.ToString());
            Console.WriteLine("esal: " + dispTest.ESAL.ToString());
            Console.ReadLine();
        }
 public TeacherDisplay(Teacher teacher, List<Course> courses)
 {
     this.teacher = teacher;
     this.courses = courses;
 }