예제 #1
0
        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);
                }
            }
        }
예제 #2
0
 protected virtual void InitControl()
 {
     MyNodeControl = new TreeViewNodeControl(
         HMembers.MyListControl,
         VMembers.MyListControl);
 }
예제 #3
0
 protected virtual void InitControl()
 {
     MyNodeControl = new TreeViewNodeControl(
         HMembers.MyListControl,
         VMembers.MyListControl);
 }