Esempio n. 1
0
 private void countTextBox_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         ClearField();
         InitField();
         FlagCount  = 0;
         LabelCount = new Label()
         {
             Text     = 0 + " / " + Mines.ToString(),
             Location = Buttons[N - 2, N - 1].Location,
             Size     = new Size(45, 20)
         };
         Controls.Add(LabelCount);
         LabelCount.BringToFront();
         IsWithFlag = false;
     }
 }
Esempio n. 2
0
 private void ChangeLabelCount()
 {
     LabelCount.Text = FlagCount.ToString() + " / " + Mines.ToString();
 }