private void NewMapDialog_Load(object sender, EventArgs e) { //Init textboxes textBoxRows.Text = Rows.ToString(); textBoxColumns.Text = Cols.ToString(); textBoxTileWidth.Text = TileWidth.ToString(); textBoxTileHeight.Text = TileHeight.ToString(); UpdateLblMapSize(); }
protected void CheckTileFail(Tile tile) { if (!CheckTile(tile)) { throw new ArgumentException(String.Format("Tried to add tile with dimenions ({0}, {1}), layer expects tile dimensions ({2}, {3})", new string[] { tile.Width.ToString(), tile.Height.ToString(), TileWidth.ToString(), TileHeight.ToString() })); } }