private void newWorldToolStripMenuItem_Click(object sender, EventArgs e) { bool rv = canLoad(); if (!rv) { return; } if (worldRoot != null) { ClearWorld(); } using (TextPromptDialog dlg = new TextPromptDialog("Create a New World", "Enter the name of your new World:", "World")) { if (dlg.ShowDialog() == DialogResult.OK) { worldRoot = new WorldRoot(dlg.UserText, worldTreeView, this); saveWorldButton.Enabled = true; saveWorldToolStripMenuItem.Enabled = true; saveWorldAsMenuItem.Enabled = true; worldRoot.AddToTree(null); worldRoot.AddToScene(); setWorldDefaults(); undoRedo.ClearUndoRedo(); worldRoot.Node.Select(); worldRoot.Node.Expand(); } } }