Beispiel #1
0
        public void RunCreateView()
        {
            string title  = null;
            string author = null;
            string genre  = null;
            string status = null;

            Console.Clear();
            Console.WriteLine("C cliked");
            Console.WriteLine(MediaCommonOutputText.GetColumnHeadings());
            Console.WriteLine();
            Console.WriteLine(MediaCommonOutputText.GetColumnHeadings());
            Console.WriteLine();
            Console.Write("Title : ");
            title = Console.ReadLine();
            Console.Write("Author : ");
            author = Console.ReadLine();
            Console.Write("Genre : ");
            genre = Console.ReadLine();
            Console.Write("Status : ");
            status = Console.ReadLine();
            Console.WriteLine();
            Console.Write("Press S to save");

            ConsoleKey consoleKey = Console.ReadKey().Key;

            if (consoleKey == ConsoleKey.S)
            {
                _collectie.Add(MediaObjectFactory.CreateNewMedia(title, author, genre, status));
            }
        }
 public override int AddPunt(Punt p)
 {
     if (punten.Count < 3)
     {
         punten.Add(p);
     }
     return(punten.Count);
 }