CheckedListBox Add Items


Node Information
Adds items to the specified CheckedListBox.
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
CheckedListBox IN CheckedListBox ONE FALSE FALSE
List IN List<String> ONE TRUE FALSE

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