// save level private void saveToolStripMenuItem_Click(object sender, EventArgs e) { if (level.filePath == "") { LevelSerializer.SaveLevelAs(level); } else { LevelSerializer.SaveLevel(level); } updateTitleBar(); }
// save level as private void saveAsToolStripMenuItem_Click(object sender, EventArgs e) { LevelSerializer.SaveLevelAs(level); updateTitleBar(); }
// open level private void openToolStripMenuItem_Click(object sender, EventArgs e) { LevelSerializer.LoadLevel(level); updateTitleBar(); }