WebBrowser Navigate


Node Information
Navigates WebBrowser to the specified url.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Navigate IN RUN MULTIPLE FALSE FALSE
WebBrowser IN WebBrowser ONE FALSE FALSE
URL IN String ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.WebBrowser
{
    [IsNode("Navigate")]
    public class WebBrowserNavigate : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Navigate");
        Port val = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "URL");
        Port control = new Port(PortType.IN, typeof(Korduene.Designer.Standard.WebBrowser), AcceptsLinks.ONE, "WebBrowser");
        public string Value
        {
            set { val.Value = value.ToString(); }
            get { return GetRuntimeValue(val); }
        }
        public WebBrowserNavigate()
        {
            this.Name = "WebBrowser Navigate";
            this.NodeType = KGraph.NodeType.Method;
            AddPort(run);
            AddPort(control);
            AddPort(val);
            Information = "Navigates WebBrowser to the specified url.";
        }
        public override string Code()
        {
            return GetValue(control) + ".Navigate(" + GetValue(val) + ");";
        }
    }
}