Panel2 Add Controls


Node Information
Adds controls to Panel2 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
List IN List<Object> ONE TRUE FALSE

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

</object>