示例#1
0
        private static void NewMusic(List <Media> mediaList)
        {
            Console.Clear();


            Console.WriteLine("Enter the Album Title: ");
            string newTitle = Console.ReadLine();

            Console.WriteLine("\nEnter the Artist: ");
            string artist = Console.ReadLine();

            Console.WriteLine("\nEnter Music Format: ");
            string format = Console.ReadLine();

            if (format == "Digital" || format == "digital")
            {
                string sp = AddTitle.DigitalTitle(newTitle);
                mediaList.Add(new DigitalMusic(newTitle, artist, sp));
            }

            else
            {
                mediaList.Add(new PhysMusic(newTitle, artist, format));
            }
        }
示例#2
0
        private void AddNewMedia(string libselect)
        {
            Console.Clear();

            AddTitle.LibrarySelect(groupList, libselect);

            ViewLibraries(libselect);
        }
示例#3
0
        private static void NewVid(List <Media> mediaList)
        {
            Console.Clear();

            Console.WriteLine("Enter the title: ");
            string newTitle = Console.ReadLine();

            Console.WriteLine("\nEnter Video Format: ");
            string format = Console.ReadLine();

            if (format == "Digital" || format == "digital")
            {
                string sp = AddTitle.DigitalTitle(newTitle);
                mediaList.Add(new DigitalVid(newTitle, sp));
            }

            else
            {
                mediaList.Add(new PhysVid(newTitle, format));
            }
        }
示例#4
0
        private void NotFound(List <Media> groupList)
        {
            Console.Clear();
            Console.WriteLine("Title Not Found\nWould you like to add it? (y/n)");

            input = Console.ReadKey();

            if (input.Key == ConsoleKey.Y)
            {
                AddTitle.LibrarySelect(groupList);
            }

            else if (input.Key == ConsoleKey.N)
            {
            }

            else
            {
                NotFound(groupList);
            }
        }
示例#5
0
        private static void NewGame(List <Media> mediaList)
        {
            Console.Clear();

            Console.WriteLine("Enter the Game Title: ");
            string newTitle = Console.ReadLine();

            Console.WriteLine("\nEnter the Platform: ");
            string platform = Console.ReadLine();

            Console.WriteLine("\nIs {0} a Physical or Digital title?", newTitle);
            string format = Console.ReadLine();

            if (format == "Digital" || format == "digital")
            {
                string sp = AddTitle.DigitalTitle(newTitle);
                mediaList.Add(new DigitalVG(newTitle, platform, sp));
            }

            else
            {
                mediaList.Add(new PhysicalVG(newTitle, platform));
            }
        }