Example #1
0
 private void LoadKids(OptionNode opt, TreeNode node)
 {
     if (opt == null)
     {
         return;
     }
     foreach (var kid in opt.Kids)
     {
         LoadOptionNode(kid, node);
     }
 }
Example #2
0
        private void LoadOptionNode(OptionNode opt, TreeNode parent)
        {
            if (opt == null)
            {
                return;
            }

            var node = new TreeNode(opt.Name)
            {
                Tag = opt
            };

            if (parent != null)
            {
                parent.Nodes.Add(node);
            }
            else
            {
                treeOpts.Nodes.Add(node);
            }

            LoadKids(opt, node);
        }
Example #3
0
 public OptionsDialog(OptionNode root) : this()
 {
     Root = root;
 }