void SetGrid() { if (KeyMouseReader.DelayedKeyPressed(Keys.Enter)) { navigateTabs = NavigationTabs.ChooseTool; } if (KeyMouseReader.KeyPressed(Keys.D)) { Constants.columns++; grid = new TileGrid(hollowTile, solidTile, Constants.tileSize, Constants.columns, Constants.rows, font); } else if (KeyMouseReader.KeyPressed(Keys.A) && Constants.columns > 1) { Constants.columns--; grid = new TileGrid(hollowTile, solidTile, Constants.tileSize, Constants.columns, Constants.rows, font); } else if (KeyMouseReader.KeyPressed(Keys.S)) { Constants.rows++; grid = new TileGrid(hollowTile, solidTile, Constants.tileSize, Constants.columns, Constants.rows, font); } else if (KeyMouseReader.KeyPressed(Keys.W) && Constants.rows > 1) { Constants.rows--; grid = new TileGrid(hollowTile, solidTile, Constants.tileSize, Constants.columns, Constants.rows, font); } }