PictureBox Load


Node Information
Loads picture from the specified path into the PictureBox.
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
PictureBox IN PictureBox ONE FALSE FALSE
Path IN String ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.PictureBox
{
    [IsNode("Load")]
    public class PictureBoxLoad : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Add");
        Port text = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Path");
        Port control = new Port(PortType.IN, typeof(Korduene.Designer.Standard.PictureBox), AcceptsLinks.ONE, "PictureBox");
        public string Text
        {
            set { text.Value = value.ToString(); }
            get { return GetRuntimeValue(text); }
        }
        public PictureBoxLoad()
        {
            this.Name = "PictureBox Load";
            this.NodeType = KGraph.NodeType.Method;
            AddPort(run);
            AddPort(control);
            AddPort(text);
            Information = "Loads picture from the specified path into the PictureBox.";
        }
        public override string Code()
        {
            return GetValue(control) + ".Load(" + GetValue(text) + ");";
        }
    }
}