private void LoadKids(OptionNode opt, TreeNode node) { if (opt == null) { return; } foreach (var kid in opt.Kids) { LoadOptionNode(kid, node); } }
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); }
public OptionsDialog(OptionNode root) : this() { Root = root; }