public Node_ViewModel(Client.Node node) : this() { _node = node; Properties = new Properties_ViewModel(_node); DeleteCommand = new RelayCommand(Delete, DeleteEnabled); AddLabelCommand = new RelayCommand(AddLabel); RemoveLabelCommand = new RelayCommand <string>(RemoveLabel, RemoveLabelEnabled); _deleted = false; Init(); }
public InitiateClientSession(Config conf) { NodeCollection = new List <Node>(); Console.WriteLine(conf.Name + " configuration loaded."); var client = new Client.Client(conf.Url); List <Node> discoveredNodes = Node.Discover(client.Session); client.Kill(); NodeCollection = Node.OrderList(discoveredNodes); }