예제 #1
0
 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();
 }
예제 #2
0
 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() }));
     }
 }