Exemplo n.º 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();
         }
     }
 }
Exemplo n.º 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();
         }
     }
 }