SQLite Load Search Into ListView


Node Information
Searches database and adds all found entries to the specified ListView.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Load IN RUN MULTIPLE FALSE FALSE
Database IN Object ONE FALSE FALSE
ListView IN ListView ONE FALSE FALSE
Keyword IN String ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Database.SQLite
{
    [IsNode("Load Search Into ListView")]
    public class LoadSearchIntoListView : Node
    {
        Port create = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Load");
        Port db = new Port(PortType.IN, typeof(object), AcceptsLinks.ONE, "Database");
        Port lv = new Port(PortType.IN, typeof(Korduene.Designer.Standard.ListView), AcceptsLinks.ONE, "ListView");
        Port tname = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Keyword");
        public LoadSearchIntoListView()
        {
            NodeType = KGraph.NodeType.Method;
            Name = "SQLite Load Search Into ListView";
            Dependency = DependencyLibraries.SQLITE;
            AddPort(create);
            AddPort(db);
            AddPort(lv);
            AddPort(tname);
            Information = "Searches database and adds all found entries to the specified ListView.";
        }
        public override string Code()
        {
            return GetValue(db) + ".LoadSearchIntoListView(" + GetValue(tname) + ", " + GetValue(lv) + ");";
        }
    }
}