public void delete_all_children() { List <TreeNodeObject> ar = this.treeNodeObject.child; List <NeoOCI> ar2 = new List <NeoOCI>(); foreach (var treeobj in ar) { ar2.Add(NeoOCI.create_from_treenode(treeobj)); } foreach (NeoOCI obj in ar2) { obj.delete(); } }
public static NeoOCI create_from_selected() { Studio.Studio studio = Studio.Studio.Instance; return(NeoOCI.create_from_treenode(studio.treeNodeCtrl.selectNode)); }