Esempio n. 1
0
 private void ActivateNode(Node_ViewModel node)
 {
     ActiveNode = node;
     ActiveNodeRelationships = new RelationView_ViewModel {
         SourceNode = node, SelectedEndNode = null
     };
 }
Esempio n. 2
0
 public Browser_ViewModel()
 {
     if (IsInDesignMode)
     {
         NodeId     = 50;
         ActiveNode = new Node_ViewModel();
         ActiveNodeRelationships = new RelationView_ViewModel();
     }
     else
     {
         _db = new GraphDatabase("http://localhost:7474").Authenticate("neo4j", "foobarbaz");
     }
     LoadNodeWithIdCommand  = new RelayCommand(LoadNodeWithId, LoadNodeWithIdEnabled);
     IncrementNodeIdCommand = new RelayCommand(IncrementNodeId, IncrementNodeIdEnabled);
     DecrementNodeIdCommand = new RelayCommand(DecrementNodeId, DecrementNodeIdEnabled);
     ActivateNodeCommand    = new RelayCommand <Node_ViewModel>(ActivateNode, ActivateNodeEnabled);
 }