예제 #1
0
파일: Program.cs 프로젝트: eihdbbb/binary3
        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();
        }
예제 #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();
        }