Beispiel #1
0
        //just for imitating lab1
        public void SimpleRemoveMovie()
        {
            string loneDeletePrompt = "Remove the only remaining movie?(Y/N)";

            if (movies.Count == 0)
            {
                Console.WriteLine("No Movies in list");
                return;
            }

            if (InputChecker.PromptYesNo(loneDeletePrompt))
            {
                Console.WriteLine(movies[0].GetTitle() + " deleted");
                movies.RemoveAt(0);
            }
            else
            {
                Console.WriteLine("Canceled");
            }
        }
Beispiel #2
0
        void SetOwnership()
        {
            string prompt = "Do you own the Movie? (Y/N)";

            ownership = InputChecker.PromptYesNo(prompt);
        }
Beispiel #3
0
        void SetLength()
        {
            string userPrompt = "Enter optional length in mins:";

            length = InputChecker.PromptFromRange(userPrompt, 0, Int32.MaxValue, 0);
        }