private void Add(RetrieveFieldsViewAdapter.Node node) { var added = Adapter.Add(node); lstCustom.SelectedItems.Clear(); foreach (var f in added) { lstCustom.SelectedItems.Add(f); } }
private TreeNode Create(RetrieveFieldsViewAdapter.Node n) { var tn = new TreeNode(n.Text) { Tag = n }; if (n.HasChildren) { tn.Nodes.Add(new TempNode()); } return(tn); }