コード例 #1
0
 //
 public void Execute()
 {
     if (tileset != null)
     {
         byte[] temp = Bits.Copy(tileset.Tileset_bytes);
         oldTileset.CopyTo(tileset.Tileset_bytes, 0);
         tileset.DrawTileset(tileset.Tileset_bytes, tileset.Tileset_tiles, graphics, format);
         oldTileset = temp;
         if (name != null)
         {
             name.SelectedIndex = index;
         }
     }
     else if (battlefieldTileset != null)
     {
         byte[] temp = Bits.Copy(battlefieldTileset.Tileset_bytes);
         oldTileset.CopyTo(battlefieldTileset.Tileset_bytes, 0);
         battlefieldTileset.DrawTileset(battlefieldTileset.Tileset_bytes, battlefieldTileset.Tileset_tiles);
         oldTileset = temp;
         form.Index = index;
     }
 }