Esempio n. 1
0
 private void RefreshButtonField()
 {
     for (int position = 0; position < 16; position++)
     {
         GetButton(position).Text    = game.GetNumber(position).ToString();
         GetButton(position).Visible = (game.GetNumber(position) > 0);
     }
 }
Esempio n. 2
0
 private void RefreshButtonField()
 {
     for (int position = 0; position < size * size; position++)
     {
         GetButton(position).Text = game.GetNumber(position).ToString();
         if (game.GetNumber(position) == 0)
         {
             GetButton(position).Hide();
         }
         else
         {
             GetButton(position).Show();
         }
     }
 }
Esempio n. 3
0
 private void RefreshButtonField()
 {
     for (int position = 0; position < 16; position++)
     {
         GetButton(position).Content = game.GetNumber(position).ToString();
         if (game.GetNumber(position) == 0)
         {
             GetButton(position).Visibility = Visibility.Hidden;
         }
         else
         {
             GetButton(position).Visibility = Visibility.Visible;
         }
     }
 }