public void Clear() { while (((RSTCNode)_resource).cssList.HasChildren) { ((RSTCNode)_resource).cssList.RemoveChild(((RSTCNode)_resource).cssList.Children[0]); } while (((RSTCNode)_resource).randList.HasChildren) { ((RSTCNode)_resource).randList.RemoveChild(((RSTCNode)_resource).randList.Children[0]); } BaseWrapper w = FindResource(((RSTCNode)_resource).cssList, false); w.EnsureVisible(); w.Expand(); w = FindResource(((RSTCNode)_resource).randList, false); w.EnsureVisible(); w.Expand(); }
public void Clear() { while (_resource.HasChildren) { _resource.RemoveChild(_resource.Children[0]); } BaseWrapper w = FindResource(_resource, false); w.EnsureVisible(); w.Expand(); }