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