WebBrowser GoHome


Node Information
Navigates WebBrowser to home page.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
GoHome IN RUN MULTIPLE FALSE FALSE
WebBrowser IN WebBrowser ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.WebBrowser
{
    [IsNode("GoHome")]
    public class WebBrowserGoHome : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "GoHome");
        Port control = new Port(PortType.IN, typeof(Korduene.Designer.Standard.WebBrowser), AcceptsLinks.ONE, "WebBrowser");
        public WebBrowserGoHome()
        {
            this.Name = "WebBrowser GoHome";
            this.NodeType = KGraph.NodeType.Method;
            AddPort(run);
            AddPort(control);
            Information = "Navigates WebBrowser to home page.";
        }
        public override string Code()
        {
            return GetValue(control) + ".GoHome();";
        }
    }
}