public MainViewModel() { _nodes = new ObservableCollection <Node>(NodesDataSource.GetRandomNodes()); _connectors = new ObservableCollection <Connector>(NodesDataSource.GetRandomConnectors(Nodes.ToList())); ShowAllCoordinates = true; ShowNames = true; }
public MainViewModel() { _nodes = new ObservableCollection <Node>(NodesDataSource.GetRandomNodes()); _connectors = new ObservableCollection <Connector>(NodesDataSource.GetRandomConnectors(Nodes.ToList())); _snaps = new ObservableCollection <SnapSpot>(Nodes.SelectMany(x => x.Snaps)); }