コード例 #1
0
ファイル: View.cs プロジェクト: jmattefs/netflix
 public void LinkTV()
 {
     string choice = DisplayTV();
     Catalogue c = new Catalogue();
     switch (choice)
     {
         case "24":
             Console.Clear();
             c.TwentyFour();
             break;
         case "seinfeld":
         case "Seinfeld":
             Console.Clear();
             c.Seinfeld();
             break;
         case "chuck":
         case "Chuck":
             Console.Clear();
             c.Chuck();
             break;
         case "Grey's Anatomy":
         case "Greys Anatomy":
         case "greys anatomy":
         case "grey's anatomy":
             Console.Clear();
             c.Greys();
             break;
         case "Gossip Girl":
         case "gossip girl":
             Console.Clear();
             c.GossipGirl();
             break;
         case "How I Met Your Mother":
         case "how i met your mother":
             Console.Clear();
             c.HIMYM();
             break;
         case "Buffy the Vampire Slayer":
         case "buffy the vampire slayer":
             Console.Clear();
             c.Buffy();
             break;
         case "Its Always Sunny in Philadelphia":
         case "its always sunny in philadelphia":
             Console.Clear();
             c.IASIP();
             break;
     }
 }
コード例 #2
0
ファイル: View.cs プロジェクト: jmattefs/netflix
        public void LinkAll()
        {
            string display = DisplayAll();
            Catalogue c = new Catalogue();
            switch (display)
            {
                case "Heat":
                case "heat":
                    Console.Clear();
                    c.Heat();
                    break;
                case "Die Hard":
                case "die hard":
                    Console.Clear();
                    c.DieHard();
                    break;
                case "Hot Fuzz":
                case "hot fuzz":
                    Console.Clear();
                    c.HotFuzz();
                    break;
                case "Rush Hour":
                case "rush hour":
                    Console.Clear();
                    c.RushHour();
                    break;
                case "Mad Max":
                case "mad max":
                    Console.Clear();
                    c.MadMax();
                    break;
                case "Mr and Mrs Smith":
                case "mr and mrs smith":
                    Console.Clear();
                    c.MrMrsSmith();
                    break;
                case "Knocked Up":
                case "knocked up":
                    Console.Clear();
                    c.KnockedUp();
                    break;
                case "Silver Linings Playbook":
                case "silver linings playbook":
                    Console.Clear();
                    c.SLP();
                    break;
                case "The Princess Bride":
                case "the princess bride":
                    Console.Clear();
                    c.PrincessBride();
                    break;
                case "Zoolander":
                case "zoolander":
                    Console.Clear();
                    c.Zoolander();
                    break;
                case "Titanic":
                case "titanic":
                    Console.Clear();
                    c.Titanic();
                    break;
                case "Dirty Dancing":
                case "dirty dancing":
                    Console.Clear();
                    c.DirtyDancing();
                    break;
                case "The Notebook":
                case "the notebook":
                    Console.Clear();
                    c.Notebook();
                    break;
                case "24":
                    Console.Clear();
                    c.TwentyFour();
                    break;
                case "seinfeld":
                case "Seinfeld":
                    Console.Clear();
                    c.Seinfeld();
                    break;
                case "chuck":
                case "Chuck":
                    Console.Clear();
                    c.Chuck();
                    break;
                case "Grey's Anatomy":
                case "Greys Anatomy":
                case "greys anatomy":
                case "grey's anatomy":
                    Console.Clear();
                    c.Greys();
                    break;
                case "Gossip Girl":
                case "gossip girl":
                    Console.Clear();
                    c.GossipGirl();
                    break;
                case "How I Met Your Mother":
                case "how i met your mother":
                    Console.Clear();
                    c.HIMYM();
                    break;
                case "Buffy the Vampire Slayer":
                case "buffy the vampire slayer":
                    Console.Clear();
                    c.Buffy();
                    break;
                case "Its Always Sunny in Philadelphia":
                case "its always sunny in philadelphia":
                    Console.Clear();
                    c.IASIP();
                    break;

            }
        }
コード例 #3
0
ファイル: View.cs プロジェクト: jmattefs/netflix
        public void LinkMovie()
        {
            string choice = DisplayMovies();
            Catalogue c = new Catalogue();

            switch (choice)
            {
                case "Heat":
                case "heat":
                    Console.Clear();
                    c.Heat();
                    break;
                case "Die Hard":
                case "die hard":
                    Console.Clear();
                    c.DieHard();
                    break;
                case "Hot Fuzz":
                case "hot fuzz":
                    Console.Clear();
                    c.HotFuzz();
                    break;
                case "Rush Hour":
                case "rush hour":
                    Console.Clear();
                    c.RushHour();
                    break;
                case "Mad Max":
                case "mad max":
                    Console.Clear();
                    c.MadMax();
                    break;
                case "Mr and Mrs Smith":
                case "mr and mrs smith":
                    Console.Clear();
                    c.MrMrsSmith();
                    break;
                case "Knocked Up":
                case "knocked up":
                    Console.Clear();
                    c.KnockedUp();
                    break;
                case "Silver Linings Playbook":
                case "silver linings playbook":
                    Console.Clear();
                    c.SLP();
                    break;
                case "The Princess Bride":
                case "the princess bride":
                    Console.Clear();
                    c.PrincessBride();
                    break;
                case "Zoolander":
                case "zoolander":
                    Console.Clear();
                    c.Zoolander();
                    break;
                case "Titanic":
                case "titanic":
                    Console.Clear();
                    c.Titanic();
                    break;
                case "Dirty Dancing":
                case "dirty dancing":
                    Console.Clear();
                    c.DirtyDancing();
                    break;
                case "The Notebook":
                case "the notebook":
                    Console.Clear();
                    c.Notebook();
                    break;
            }

        }