Example #1
0
        public void ReLayout()
        {
            int nodeCount = nodeList.Count();

            if (nodeCount > 0)
            {
                Size boxSize = new Size(0, 0);
                boxSize.Width  = (int)(this.flowLayoutPanel1.Width / (float)nodeCount - 10);
                boxSize.Height = (int)(this.flowLayoutPanel1.Height);
                for (int i = 0; i < nodeCount; i++)
                {
                    UserControlCtlNode node = nodeList[i];

                    node.Size = boxSize;
                }
            }
        }
Example #2
0
 public void Add(UserControlCtlNode node)
 {
     this.flowLayoutPanel1.Controls.Add(node);
     nodeList.Add(node);
 }