SQLite Load Into DataGridView


Node Information
Loads all entries from the specified table from the specified SQLite database.
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
TableName IN String ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Database.SQLite
{
    [IsNode("Load Into DataGridView")]
    public class LoadIntoDataGridView : 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.DataGridView), AcceptsLinks.ONE, "DataGridView");
        Port tname = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "TableName");
        public LoadIntoDataGridView()
        {
            NodeType = KGraph.NodeType.Method;
            Name = "SQLite Load Into DataGridView";
            Dependency = DependencyLibraries.SQLITE;
            AddPort(create);
            AddPort(db);
            AddPort(lv);
            AddPort(tname);
            Information = "Loads all entries from the specified table from the specified SQLite database.";
        }
        public override string Code()
        {
            return GetValue(db) + ".LoadTableIntoDataGridView(" + GetValue(tname) + ", " + GetValue(lv) + ");";
        }
    }
}