protected void DrawLines(IRenderer Renderer) { if (this.VMembers == null || this.VMembers.Children.Count == 0 || this.Collapsed) { return; } const int nonExistent = int.MinValue; topPoint.Set( nonExistent, this.HMembers.Bounds.Bottom); foreach (Control child in this.VMembers.Children) { TreeViewNodeControl node = child as TreeViewNodeControl; if (node != null) { if (topPoint.X == nonExistent) { topPoint.X = node.CollapseButton.Bounds.CenterX; } bottomPoint.Set( topPoint.X, node.CollapseButton.Bounds.CenterY); rightPoint.Set( node.HMembers.Bounds.Location.X - 3, bottomPoint.Y); Renderer.DrawOperations.DrawLine( topPoint, bottomPoint, this.TreeLineStyle); Renderer.DrawOperations.DrawLine( bottomPoint, rightPoint, this.TreeLineStyle); } } }
protected virtual void InitControl() { MyNodeControl = new TreeViewNodeControl( HMembers.MyListControl, VMembers.MyListControl); }