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() + ")"; }
private void Initialize() { timer = new CounterTimer(); timer.Start(); timer.Tick += Timer_Tick; FlaggedMines = 0; FalsePositives = 0; InitializeResetButton(this); InitializeButtonMatrix(); GenerateMinefield(); }