Panel2 Remove Control


Node Information
Removes control from Panel2 in the specified SplitContainer.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Remove IN RUN MULTIPLE FALSE FALSE
GroupBox IN SplitContainer ONE FALSE FALSE
Value IN String ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.SplitContainer
{
    [IsNode("Panel2 Remove Control")]
    public class Panel2ControlRemove : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Remove");
        Port val = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Value");
        Port control = new Port(PortType.IN, typeof(Korduene.Designer.Standard.SplitContainer), AcceptsLinks.ONE, "GroupBox");
        public string Value
        {
            set { val.Value = value.ToString(); }
            get { return GetRuntimeValue(val); }
        }
        public Panel2ControlRemove()
        {
            this.Name = "Panel2 Remove Control";
            this.NodeType = KGraph.NodeType.Method;
            AddPort(run);
            AddPort(control);
            AddPort(val);
            Information = "Removes control from Panel2 in the specified SplitContainer.";
        }
        public override string Code()
        {
            return GetValue(control) + ".Panel2.Controls.Remove(" + GetValue(val) + ");";
        }
    }
}