SQLite Load Search Into DataGridView


Node Information
Searches database and adds all found entries to the specified DataGridView.
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
DataGridView IN DataGridView ONE FALSE FALSE
Keyword IN String ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Database.SQLite
{
    [IsNode("Load Search Into DataGridView")]
    public class LoadSearchIntoDataGridView : 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(System.Windows.Forms.DataGridView), AcceptsLinks.ONE, "DataGridView");
        Port tname = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Keyword");
        public LoadSearchIntoDataGridView()
        {
            NodeType = KGraph.NodeType.Method;
            Name = "SQLite Load Search Into DataGridView";
            Dependency = DependencyLibraries.SQLITE;
            AddPort(create);
            AddPort(db);
            AddPort(lv);
            AddPort(tname);
            Information = "Searches database and adds all found entries to the specified DataGridView.";
        }
        public override string Code()
        {
            return GetValue(db) + ".LoadSearchIntoListView(" + GetValue(tname) + ", " + GetValue(lv) + ");";
        }
    }
}