コード例 #1
0
        static void Main(string[] args)
        {
            do
            {
                Console.WriteLine("Select Table:");
                Console.WriteLine("==========================");
                Console.WriteLine("Studnet:\t1,");
                Console.WriteLine("Teacher:\t2,");
                Console.WriteLine("Course:\t3,");
                Console.WriteLine("Registration:\t4,");
                Console.WriteLine("Exit:\t0");
                Console.WriteLine("==========================");
                Console.Write("Enter Command Here: ");
                string input = Console.ReadLine();
                switch (input)
                {
                    case "1":
                        StudentUI studentUI = new StudentUI();
                        studentUI.Start();
                        break;

                    case "2":
                        TeacherUI teacherUI = new TeacherUI();
                        teacherUI.Start();
                        break;

                    case "3":
                        CourseUI courseUI = new CourseUI();
                        courseUI.Start();
                        break;

                    case "4":
                        RegistrationUI registraionUI = new RegistrationUI();
                        registraionUI.Start();
                        break;

                    case "0":
                        return;

                }
                Console.WriteLine("==========================");
                Console.WriteLine("Press Enter to Continue...");
                Console.ReadLine();
            } while (true);
        }
コード例 #2
0
        static void Main(string[] args)
        {
            do
            {
                Console.WriteLine("Select Table:");
                Console.WriteLine("==========================");
                Console.WriteLine("Studnet:\t1,");
                Console.WriteLine("Teacher:\t2,");
                Console.WriteLine("Course:\t3,");
                Console.WriteLine("Registration:\t4,");
                Console.WriteLine("CourseTeacher:\t5,");
                Console.WriteLine("Exit:\t0");
                Console.WriteLine("==========================");
                Console.Write("Enter Command Here: ");
                string input = Console.ReadLine();
                switch (input)
                {
                    case "1":
                        StudentUI ui = new StudentUI();
                        ui.Start();
                        break;
                    case "2":
                        //Write code here to manage Teacher
                        break;
                    case "3":
                        //Write code here to manage Course
                        break;
                    case "4":
                        //Write code here to manage Registration
                        break;
                    case "5":
                    //Write code here to manage Course Teacher
                        break;
                    case "0":
                        return;

                }
                Console.WriteLine("==========================");
                Console.WriteLine("Press Enter to Continue...");
                Console.ReadLine();
            } while (true);
        }