コード例 #1
0
ファイル: View.cs プロジェクト: jmattefs/netflix
        public string DisplayMovies()
        {
            string response = StartMovies();
            Genre genre = new Genre();
            switch (response)
            {
                case "A":
                case "a":
                    Console.WriteLine("---Type in a title to see more information---");
                    genre.GenreAction();
                    
                    string input = Console.ReadLine();
                    return input;
                case "B":
                case "b":
                    Console.WriteLine("---Type in a title to see more information---");

                    genre.GenreComedy();
                    string input2 = Console.ReadLine();
                    return input2;
                case "C":
                case "c":
                    Console.WriteLine("---Type in a title to see more information---");

                    genre.GenreRomance();
                    string input3 = Console.ReadLine();
                    return input3;
                    
                case "D":
                case "d":
                    Console.WriteLine("---Type in a title to see more information---");

                    genre.GenreAll();
                    string input4 = Console.ReadLine();
                    return input4;
                default:
                    return DisplayMovies();
                    
                   
            }

        }
コード例 #2
0
ファイル: View.cs プロジェクト: jmattefs/netflix
        public string DisplayAll()
        {
            Genre g = new Genre();
            Console.WriteLine("---Type in a title to see more information---");

            g.GenreAll();
            string title;
            title = Console.ReadLine();
            return title;
        }