コード例 #1
0
        public OknoGry(Swiat swiat)
        {
            InitializeComponent();
            this.swiat = swiat;
            this.aktualizacjaStanuSwiata = new AktualizacjaStanuSwiata(swiat);
            narysujMape();
            dzien          = 1;
            miesiac        = 1;
            rok            = 1;
            timer          = new Timer();
            timer.Tick    += new EventHandler(Timer_Tick);
            timer.Interval = 100;
            timer.Start();

            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.DoubleBuffer, true);
        }
コード例 #2
0
        public OknoGry(Swiat swiat)
        {
            InitializeComponent();
            this.swiat = swiat;
            this.aktualizacjaStanuSwiata = new AktualizacjaStanuSwiata(swiat);
            narysujMape();
            dzien = 1;
            miesiac = 1;
            rok = 1;
            timer = new Timer();
            timer.Tick += new EventHandler(Timer_Tick);
            timer.Interval = 100;
            timer.Start();

            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.DoubleBuffer, true);
        }