Esempio n. 1
0
        static void Main(string[] args)
        {
            Blockbuster bb = new Blockbuster();

            bool checkedOut = true;



            while (checkedOut)
            {
                Console.Clear();
                Movie m = bb.Checkout();
                Console.WriteLine($"You have checked out {m.Title}");
                Console.WriteLine();
                m.PrintInfo();

                string userSelection = GetUserInput("Do you want to watch this movie? Enter y/n:  ");
                if (userSelection == "y")
                {
                    m.Play();
                    Console.WriteLine("Enter 1 to check out a new movie.  Enter 2 to return this one and go home: ");

                    int choice = int.Parse(Console.ReadLine());
                    if (choice == 1)
                    {
                        checkedOut = true;
                    }
                    else if (choice == 2)
                    {
                        Console.WriteLine("Ok, thanks for chosing Blockbuter!");
                        break;
                    }
                }
                else if (userSelection == "n")
                {
                    Console.WriteLine("ok, lets get you back to the main menu to pick something else");
                    Console.WriteLine();
                    Console.WriteLine();
                    checkedOut = true;
                }
            }
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Blockbuster.CheckOut();



            //List<string> vhsScenes = new List<string>();
            //vhsScenes.Add("The sand scene");
            //vhsScenes.Add("The lot scene");
            //vhsScenes.Add("The baseball scene");
            //VHS v = new VHS("The Sandlot", "Drama", 90, vhsScenes);
            //v.Play();
            //v.PrintScenes();

            //List<string> dumbAndDumber = new List<string>();
            //dumbAndDumber.Add("The most annoying sound in the world");
            //dumbAndDumber.Add("The scene where he got his tongue stuck on an icy pole");
            //dumbAndDumber.Add("The Pretty Bird Scene");
            //DVD dumbum = new DVD("Dumnb and DUmber", "Comedy", 80, dumbAndDumber);
            //dumbum.Play();
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to GC Blockbuster");
            Blockbuster b = new Blockbuster();
            Movie       m = b.CheckOut();

            Console.Write("\nWould you like to watch the movie (Y/N):   ");
            char check = Console.ReadLine()[0];

            Console.WriteLine();
            while (char.ToUpper(check) == 'Y')
            {
                if (char.ToUpper(check) == 'Y')
                {
                    m.Play();
                }
                Console.Write("\nWatch another scene (Y/N):   ");
                check = Console.ReadLine()[0];
                Console.WriteLine();
            }
        }
Esempio n. 4
0
 static void Main(string[] args)
 {
     Blockbuster.CheckOut();
 }