Пример #1
0
        public Model()
        {
            currentView = new IEG3080.View();
            createController();
            initGame();

            //TimerCallback timerDelegate = new TimerCallback(allMove);
            //this.timer = new System.Threading.Timer(timerDelegate, null, 500, 40);

            currentView.TimerEvent   += new IEG3080.TimerHandler(allMove);
            ModelUpdateEvent         += new IEG3080.DrawObjectCreatedHandler(currentView.UpdateView);
            currentView.WindowClosed += new EventHandler(Exit);
            //currentView.ClientRectangle = new Rectangle(0, 0, 800, 500);
            //currentView.client

            currentView.Show();
            Application.Run();
        }
Пример #2
0
        public Model()
        {
            currentView = new IEG3080.View();
            createController();
            initGame();

            //TimerCallback timerDelegate = new TimerCallback(allMove);
            //this.timer = new System.Threading.Timer(timerDelegate, null, 500, 40);

            currentView.TimerEvent += new IEG3080.TimerHandler(allMove);
            ModelUpdateEvent += new IEG3080.DrawObjectCreatedHandler(currentView.UpdateView);
            currentView.WindowClosed += new EventHandler(Exit);
            //currentView.ClientRectangle = new Rectangle(0, 0, 800, 500);
            //currentView.client

            currentView.Show();
            Application.Run();
        }