private void InitButtons() { controller = new SchemaController(); for (int l = 0; l < GRID_LENGTH; l++) { for (int c = 0; c < GRID_LENGTH; c++) { var forme = controller.CreateFormeRonde(c, l).Get(); Grid.SetRow(forme, l); Grid.SetColumn(forme, c); SchemaGrid.Children.Add(forme); } } controller.CreateSchemaToFind(); }