Beispiel #1
0
        static void Main(string[] args)
        {
            Program prog = new Ex28.Program();

            Console.WriteLine("tryk 1 for InsertPet");
            Console.WriteLine("tryk 2 for vis alle dyr");
            string menuValg = Console.ReadLine();

            if (menuValg == "1")
            {
                prog.Run();
            }
            else if (menuValg == "2")
            {
                prog.ShowPets();
            }
            else
            {
                Console.WriteLine("fejl i input, Prøv igen");
            }
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Program pro = new Ex28.Program();

            pro.Run();
        }