Пример #1
0
        public Form1()
        {
            InitializeComponent();

            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.UserPaint, true);

            this.Paint       += new System.Windows.Forms.PaintEventHandler(Draw);
            Application.Idle += new EventHandler(Application_Idle);

            Game = new Game();
            Game.Init();
        }