Add Row


Node Information
Adds Row to specified DataGridView.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Add IN RUN MULTIPLE FALSE FALSE
DataGridView IN Object ONE FALSE FALSE
Row IN Object ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.DataGridView
{
    [IsNode("Add Row")]
    public class DataGridViewAddRow : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Add");
        Port control = new Port(PortType.IN, typeof(object), AcceptsLinks.ONE, "DataGridView");
        Port row = new Port(PortType.IN, typeof(object), AcceptsLinks.ONE, "Row");
        public DataGridViewAddRow()
        {
            NodeType = KGraph.NodeType.Method;
            Name = "Add Row";
            AddPort(run);
            AddPort(control);
            AddPort(row);
            ReferenceType = typeof(System.Windows.Forms.DataGridViewColumn);
            Information = "Adds Row to specified DataGridView.";
        }
        public override string Code()
        {
            return GetValue(control) + ".Rows.Add(" + GetValue(row) + ");";
        }
    }
}