コード例 #1
0
ファイル: EditorForm.cs プロジェクト: radtek/ZeldaOracle
 // 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();
         }
     }
 }