Exemple #1
0
        /*private void refreshSceneTreeButton_Click(object sender, EventArgs e)
         * {
         *  sceneTreeView.Nodes.Clear();
         *  TreeNode root = new TreeNode();
         *  PopulateSceneTreeView(root, CurrentMap.SceneRoot);
         *  sceneTreeView.Nodes.Add(root);
         *  root.Expand();
         * }*/

        /*void PopulateSceneTreeView(TreeNode n, Graphics.Entity e)
         * {
         *  n.Text = e.GetType().Name + ": " + e.Name;
         *  n.Tag = e;
         *  foreach (var et in e.Children)
         *  {
         *      TreeNode n2 = new TreeNode();
         *      PopulateSceneTreeView(n2, et);
         *      n.Nodes.Add(n2);
         *  }
         * }*/

        private void newToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NewMapDialog d = new NewMapDialog();

            if (d.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            New(d.Settings);
        }
 /*private void refreshSceneTreeButton_Click(object sender, EventArgs e)
 {
     sceneTreeView.Nodes.Clear();
     TreeNode root = new TreeNode();
     PopulateSceneTreeView(root, CurrentMap.SceneRoot);
     sceneTreeView.Nodes.Add(root);
     root.Expand();
 }*/
 /*void PopulateSceneTreeView(TreeNode n, Graphics.Entity e)
 {
     n.Text = e.GetType().Name + ": " + e.Name;
     n.Tag = e;
     foreach (var et in e.Children)
     {
         TreeNode n2 = new TreeNode();
         PopulateSceneTreeView(n2, et);
         n.Nodes.Add(n2);
     }
 }*/
 private void newToolStripMenuItem_Click(object sender, EventArgs e)
 {
     NewMapDialog d = new NewMapDialog();
     if (d.ShowDialog() != DialogResult.OK) return;
     New(d.Settings);
 }