Panel1 Add Control


Node Information
Adds control to Panel1 in the specified SplitContainer.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Add IN RUN MULTIPLE FALSE FALSE
SplitContainer IN SplitContainer ONE FALSE FALSE
Control IN Object ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.SplitContainer
{
    [IsNode("Panel1 Add Control")]
    public class Panel1ControlAdd : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Add");
        Port val = new Port(PortType.IN, typeof(object), AcceptsLinks.ONE, "Control");
        Port control = new Port(PortType.IN, typeof(Korduene.Designer.Standard.SplitContainer), AcceptsLinks.ONE, "SplitContainer");
        public Panel1ControlAdd()
        {
            this.Name = "Panel1 Add Control";
            this.NodeType = KGraph.NodeType.Method;
            AddPort(run);
            AddPort(control);
            AddPort(val);
            Information = "Adds control to Panel1 in the specified SplitContainer.";
        }
        public override string Code()
        {
            return GetValue(control) + ".Panel1.Controls.Add(" + GetValue(val) + ");";
        }
    }
}