/// <summary> /// Adds a new properties node. /// </summary> /// <param name="label">Node label.</param> /// <returns>Newly created control</returns> public Properties Add(String label) { TreeNode node = new PropertyTreeNode(this); node.Text = label; node.Dock = Pos.Top; Properties props = new Properties(node); props.Dock = Pos.Top; return props; }
public void TestProperties() { var control = new Properties(canvas); control.SetSize(150, 150); control.Add("label1", "val1"); control.Add("label1", "val2"); control.Add("label2", "val1"); control.Add("label2", "val2"); control.Add("label2", "val3"); GUI.Test(control, "Properties1"); }