private static bool TeacherMainMenu(User user) { bool logout = false; do { Console.Clear(); Console.WriteLine("Tiger Board!"); Console.WriteLine("Lärarmeny"); Console.WriteLine(); Console.WriteLine("0. Logga ut"); Console.WriteLine("1. Visa mina kurser"); Console.WriteLine("2. Visa studentlista för en kurs"); Console.WriteLine("3. Betygsätt student"); Console.WriteLine("4. Betygsätt delmål"); Console.WriteLine("5. Visa kursplan"); Console.WriteLine("6. Visa kursmål"); Console.WriteLine("7. Byt lösenord"); Console.WriteLine(); Console.Write("Ditt val: "); string menuChoice = UserInput.GetInput <string>(); switch (menuChoice) { case "0": logout = LogoutConfirmation(); break; case "1": CoursePresenter.ShowTeacherCourses(user); break; case "2": CoursePresenter.ShowStudentsForCourse(user); break; case "3": GradePresenter.GradeStudentInCourse(user); break; case "4": GradePresenter.GradeStudentGoal(user); break; case "5": CoursePresenter.ShowCoursePlan(user); break; case "6": CoursePresenter.ShowCourseGoals(); break; case "7": AccountPresenter.ChangePassword(user); break; } } while (!logout); return(false); }
private static bool StudentMainMenu(User user) { bool logout = false; do { Console.Clear(); Console.WriteLine("Tiger Board!"); Console.WriteLine("Studentmeny"); Console.WriteLine(); Console.WriteLine("0. Logga ut"); Console.WriteLine("1. Visa mina studieresultat"); Console.WriteLine("2. Klasslista"); Console.WriteLine("3. Kurslista"); Console.WriteLine("4. Byt lösenord"); Console.WriteLine("5. Visa kursplan"); Console.WriteLine("6. Visa kursmål"); Console.WriteLine(); Console.Write("Ditt val: "); string menuChoice = UserInput.GetInput <string>(); switch (menuChoice) { case "0": logout = LogoutConfirmation(); break; case "1": GradePresenter.ShowStudentCourseGrades(user); break; case "2": ClassListPresenter.ShowClassForStudent(user); break; case "3": CoursePresenter.ShowStudentCourseList(user); break; case "4": AccountPresenter.ChangePassword(user); break; case "5": CoursePresenter.ShowCoursePlan(user); break; case "6": CoursePresenter.ShowStudentCourseGoals(user); break; } } while (!logout); return(false); }