Wouterdek/NodeNetwork

No defintion for Add on Node view model

sabuto opened this issue · 1 comments

Hi,

I am really sorry if this i snot a bug and just my stupidity but i get this error whenever i try and add a node, input or output.

Error CS1061 'ISourceList' does not contain a definition for 'Add' and no accessible extension method 'Add' accepting a first argument of type 'ISourceList' could be found (are you missing a using directive or an assembly reference?)

and here is my code

var network = new NetworkViewModel();

            //Create the node for the first node, set its name and add it to the network.
            var node1 = new NodeViewModel();
            node1.Name = "Node 1";
            network.Nodes.Add(node1);

Try adding using DynamicData; at the top of your file.