private void guardarToolStripMenuItem_Click(object sender, EventArgs e) { try { MapWriter.write(toWork, path); } catch (Exception ex) { MessageBox.Show("Error al guardar ( " + ex.Message + " )."); } }
private void createButton_Click(object sender, EventArgs e) { tileset.Save(saveTextBox.Text + ".tile"); MapWriter.write(new Map(( short )mapSizeSelector.Value, tileSize, true), saveTextBox.Text); }