Beispiel #1
0
        static void Main(string[] args)
        {
            DBTeahcer        dBTeahcer        = new DBTeahcer();
            DBSubjects       dBSubjects       = new DBSubjects();
            DBTeacherSubject dBTeacherSubject = new DBTeacherSubject();


            SubjectMenu        subjectMenu        = new SubjectMenu(dBSubjects);
            MenuTeacher        menuTeacher        = new MenuTeacher(dBTeahcer);
            MenuTeacherSubject menuTeacherSubject = new MenuTeacherSubject(dBTeacherSubject);

            MainMenuStrategy mainMenuStrategy = new MainMenuStrategy(menuTeacher, subjectMenu, menuTeacherSubject);
            Menu             mainMenu         = new Menu(mainMenuStrategy);

            mainMenu.Run();
        }
Beispiel #2
0
 public MenuTeacherSubject(DBTeacherSubject dBTeacherSubject)
 {
     _dBTeacherSubject = dBTeacherSubject;
 }