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