Esempio n. 1
0
        static void Main(string[] args)
        {
            while (true)
            {
                Console.Clear();

                Dog        dog        = new Dog();
                Cat        cat        = new Cat();
                Lizard     lizard     = new Lizard();
                Snake      snake      = new Snake();
                Turtle     turtle     = new Turtle();
                Hamster    hamster    = new Hamster();
                DryFeed    dryFeed    = new DryFeed();
                LiquidFeed liquidFeed = new LiquidFeed();
                Bone       bone       = new Bone();
                Ball       ball       = new Ball();
                Manager    manager    = new Manager();
                Seller     seller     = new Seller();

                Console.WriteLine("\t\tMenu");
                Console.WriteLine("Enter 1  for know about dog;");
                Console.WriteLine("Enter 2  for know about cat;");
                Console.WriteLine("Enter 3  for know about lizard;");
                Console.WriteLine("Enter 4  for know about snake;");
                Console.WriteLine("Enter 5  for know about turtle;");
                Console.WriteLine("Enter 6  for know about humster;");
                Console.WriteLine("Enter 7  for know about dry feed;");
                Console.WriteLine("Enter 8  for know about liquid feed;");
                Console.WriteLine("Enter 9  for know about bone;");
                Console.WriteLine("Enter 10 for know about ball;");
                Console.WriteLine("Enter 11 for know about manager;");
                Console.WriteLine("Enter 12 for know about seller;");
                Console.WriteLine("Enter 13 for EXIT;");

                int choice = int.Parse(Console.ReadLine());

                switch (choice)
                {
                case 1:
                    dog.GetFullInfo();
                    break;

                case 2:
                    cat.GetFullInfo();
                    break;

                case 3:
                    lizard.GetFullInfo();
                    break;

                case 4:
                    snake.GetFullInfo();
                    break;

                case 5:
                    turtle.GetFullInfo();
                    break;

                case 6:
                    hamster.GetFullInfo();
                    break;

                case 7:
                    dryFeed.GetFullInfo();
                    break;

                case 8:
                    liquidFeed.GetFullInfo();
                    break;

                case 9:
                    bone.GetFullInfo();
                    break;

                case 10:
                    ball.GetFullInfo();
                    break;

                case 11:
                    manager.GetFullInfo();
                    break;

                case 12:
                    seller.GetFullInfo();
                    break;

                case 13:
                    Environment.Exit(0);
                    break;
                }
                Console.ReadKey();
            }
        }