Exemplo n.º 1
0
        static void Main(string[] args)
        {
            TopMenu menu = new TopMenu();

            BeastsZoo  beasts     = new BeastsZoo();
            DataSource dataSource = new DataSource();

            dataSource.GetBeasts(beasts);

            beasts.PrintAll();
            do
            {
            } while (menu.MakeChoice(beasts) != 0);



            Console.ReadKey();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            TopMenu menu = new TopMenu();

            BeastsZoo  beasts     = new BeastsZoo();
            DataSource dataSource = new DataSource();

            dataSource.GetBeasts(beasts);

            TimerCallback tm    = new TimerCallback(BeastsZoo.EmptyZooRandom);
            Timer         timer = new Timer(tm, beasts, 5000, 5000);


            beasts.PrintAll();
            do
            {
            } while (menu.MakeChoice(beasts) != 0);


            Console.ReadKey();
        }