Ejemplo n.º 1
0
        private void Timer_Tick(object sender, EventArgs e)
        {
            CounterTimer CT = sender as CounterTimer;

            CT.IncrementTimer();

            Console.WriteLine(CT.GetUITime());
            this.Text = "Mineswooper by Nøls (" + CT.GetUITime() + ")";
        }
Ejemplo n.º 2
0
        private void Initialize()
        {
            timer = new CounterTimer();
            timer.Start();
            timer.Tick += Timer_Tick;


            FlaggedMines   = 0;
            FalsePositives = 0;
            InitializeResetButton(this);
            InitializeButtonMatrix();
            GenerateMinefield();
        }