Esempio n. 1
0
        public MainViewModel()
        {
            _nodes      = new ObservableCollection <Node>(NodesDataSource.GetRandomNodes());
            _connectors = new ObservableCollection <Connector>(NodesDataSource.GetRandomConnectors(Nodes.ToList()));

            ShowAllCoordinates = true;
            ShowNames          = true;
        }
Esempio n. 2
0
 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));
 }