Example #1
0
 public ControlButton(Field f, int i, int j)
 {
     field = f;
     this.i = i;
     this.j = j;
 }
Example #2
0
 void NewGame(int n)
 {
     if (n < 5) n = 5;
     if (n > 20) n = 20;
     if (listBox1.SelectedItem != null)
     {
         field = new Field(n, (listBox1.SelectedItem as LevelEl).percent);   // дописать код!!!! выбор процента и длинны поля
     }
     else
     {
         field = new Field(n, 15);
     }
     AddButtons();
     field.Change += ChangeButton;
     field.Loose += Loose;
     field.Win += Win;
     ChangeForm();
 }