public static void InsertStudentsPerCourse()
        {
            TablePrinting.PrintAllStudents();
            int b = IdSelection.GetStudentId();

            TablePrinting.PrintAllCourses();
            int a = IdSelection.GetCourseId();

            Services.StudentPerCourseTransfer(a, b);
        }
        public static void InsertTrainerPerCourse()
        {
            TablePrinting.PrintAllTrainers();
            int b = IdSelection.GetTrainerId();

            TablePrinting.PrintAllCourses();
            int a = IdSelection.GetCourseId();

            Services.TrainerPerCourseTransfer(a, b);
        }
        public static void InsertStudentPerCoursePerAss()
        {
            TablePrinting.PrintAllCourses();
            int a = IdSelection.GetCourseId();

            TablePrinting.PrintAllAssignments();
            int b = IdSelection.GetAssignmentId();

            TablePrinting.PrintAllStudents();
            int c = IdSelection.GetStudentId();

            Services.AssignmentPerCoursePerStudentTransfer(a, b, c);
        }
Exemple #4
0
        // Συνθετικό Μενού
        public static void SyntheticMenu()
        {
            string answer = string.Empty;

            Standard_Messages.ShowSyntheticOption();
            answer = Interaction.StringAnswer();
            while (!(answer == "1" || answer == "2" || answer == "0"))
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("\tChoose Between (1,2,0)");
                Console.Beep();
                Console.ForegroundColor = ConsoleColor.White;
                Console.Write("\tChoice : ");
                answer = Interaction.StringAnswer();
            }
            switch (answer)
            {
            case "1":
                Console.Clear();
                Standard_Messages.Welcome();
                TablePrinting.PrintAllTables();      // Εκτύπωση όλων των στοιχείων
                MoveTools.GoBack();
                break;

            case "2":
                Console.Clear();
                Standard_Messages.Welcome();
                MoveTools.GobackStartmenu();      // Μεταφορά πίσω στο αρχικό μενου
                break;

            case "0":
                Console.Clear();
                Standard_Messages.Welcome();
                MoveTools.LogOut();     // Αποσύνδεση
                break;
            }
        }