Beispiel #1
0
        static void Main(string[] args)
        {
            Menu           menu    = new Menu();
            StudentJournal journal = new StudentJournal();

            journal.EnteringStudentName();

            while (true)
            {
                switch (menu.MenuItemSelection())
                {
                case 1:
                    journal.AddSubject();
                    break;

                case 2:
                    int     numberOfSubject = menu.SubjectMenuItemSelection(journal.subjects);
                    Subject subject         = journal.subjects[numberOfSubject];
                    subject.AddMark();
                    break;

                case 3:
                    ShowStatistic(menu, journal);
                    break;

                case 4:
                    return;

                default:
                    menu.ShowInvalidMenuItenText();
                    break;
                }
            }
        }