Beispiel #1
0
 public void InitGameplay(List <Button> buttons, Label label, System.Windows.Forms.Timer timer)
 {
     mines = new Mines();
     mines.initMines();
     stopwatch           = new Stopwatch();
     this.buttons        = buttons;
     this.label          = label;
     this.timer          = timer;
     this.contentChecker = contentChecker;
 }
Beispiel #2
0
 public void restart()
 {
     label.ForeColor = System.Drawing.Color.Black;
     InitGame        = false;
     for (int i = 0; i < 100; i++)
     {
         buttons[i].Text      = " ";
         buttons[i].Enabled   = true;
         buttons[i].ForeColor = System.Drawing.Color.Black;
         buttons[i].BackColor = Color.FromArgb(192, 192, 192);
     }
     mines.initMines();
     stopwatch.reset();
     stopwatch.UpdateLabel(label, " ");
     timer.Start();
 }