Esempio n. 1
0
 private void setTileSizePalTSMI_Click(object sender, EventArgs e)
 {
     TileSizeDialog tsd = new TileSizeDialog(PaletteData.TileSize);
     tsd.ShowDialog();
     PaletteData.TileSize = tsd.NewTileSize;
     this.DataPanel_Paint(this, null);
 }
Esempio n. 2
0
 private void setTileSizeTSMI_Click(object sender, EventArgs e)
 {
     TileSizeDialog tsd = new TileSizeDialog(GraphicsData.TileSize);
     tsd.ShowDialog();
     Point p = tsd.NewTileSize;
     if (((p.X | p.Y) & 1) == 0)
     {
         GraphicsData.TileSize = tsd.NewTileSize;
         this.DataPanel_Paint(this, null);
     }
     else
     {
         MessageBox.Show("The dimensions of a tile can not be odd", "Invalid Tile Size");
     }
 }