public void ExpandChildren() { if (this.children == null) { this.children = new List<MemoryElement>(); for (int i = 0; i < this.ReferenceCount(); i++) { this.AddChild(new MemoryElement(this.memoryInfo.referencedBy[i], false)); } } }
protected void DrawRecursiveData(MemoryElement element, ref int row, int indent) { if (element.ChildCount() != 0) { element.ExpandChildren(); foreach (MemoryElement current in element.children) { row++; this.DrawItem(current, ref row, indent); } } }