Exemplo n.º 1
0
        public static void RunMenu()
        {
            string choice;

            do
            {
                Menu.MenuStart();
                Console.Write("Choose one of the above: ");
                choice = Console.ReadLine();
                if (choice == "1")
                {
                    Menu.MenuInsert();
                }
                else if (choice == "2")
                {
                    FrontEnd.RunAllPrintMethods();
                }
                else if (choice == "3")
                {
                    Environment.Exit(0);
                }
                else if (choice != "3")
                {
                    Console.WriteLine("-- Wrong input --");
                    Console.WriteLine();
                }
            } while (choice != "3");
        }
Exemplo n.º 2
0
        public static TrainerPerCourse AddTrainertPerCourse()
        {
            TrainerPerCourse tpc = new TrainerPerCourse();

            FrontEnd.PrintTrainers();
            tpc.TrainerId = InputsMethods.SelectTrainerId();
            FrontEnd.PrintCourses();
            tpc.CourseId = InputsMethods.SelectCourseId();
            return(tpc);
        }
Exemplo n.º 3
0
        public static StudentPerCourse AddStudentPerCourse()
        {
            StudentPerCourse spc = new StudentPerCourse();

            FrontEnd.PrintStudents();
            spc.StudentId = InputsMethods.SelectStudentId();
            FrontEnd.PrintCourses();
            spc.CourseId = InputsMethods.SelectCourseId();
            return(spc);
        }
Exemplo n.º 4
0
        public static AssignmentPerStudentPerCourse AddAssignmentPerCourse()
        {
            AssignmentPerStudentPerCourse apc = new AssignmentPerStudentPerCourse();

            FrontEnd.PrintAssignments();
            apc.AssignemntId = InputsMethods.SelectAssignmentId();
            FrontEnd.PrintCourses();
            apc.CourseId = InputsMethods.SelectCourseId();
            FrontEnd.PrintStudents();
            apc.StudentId = InputsMethods.SelectStudentId();
            return(apc);
        }