예제 #1
0
 // Add New Dungeon...
 private void buttonAddDungeon_Click(object sender, EventArgs e)
 {
     using (DungeonAddForm form = new DungeonAddForm(editorControl.World)) {
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             Dungeon dungeon = form.CreateDungeon();
             editorControl.World.AddDungeon(dungeon);
             editorControl.RefreshWorldTreeView();
         }
     }
 }
예제 #2
0
 // Add New Dungeon...
 private void buttonAddDungeon_Click(object sender, EventArgs e)
 {
     using (DungeonAddForm form = new DungeonAddForm(editorControl.World)) {
         if (form.ShowDialog(this) == DialogResult.OK) {
             Dungeon dungeon = form.CreateDungeon();
             editorControl.World.AddDungeon(dungeon);
             editorControl.RefreshWorldTreeView();
         }
     }
 }