public void Initialize() { var services = _client.ServiceProxy.GetAllServices(); TreeViewItem.Items.Clear(); foreach (var service in services) { var node = new NDistServiceNode(_client, _serverListener, service) { TreeView = TreeView }; node.TreeViewItem = new TreeViewItem { Header = service.Name, Tag = node }; TreeViewItem.Items.Add(node.TreeViewItem); node.Initialize(); } }
public void Initialize() { var services = _client.ServiceProxy.GetAllServices(); TreeViewItem.Items.Clear(); foreach (var service in services) { var node = new NDistServiceNode(_client, _serverListener, service) { TreeView = TreeView }; node.TreeViewItem = new TreeViewItem { Header = service.Name, Tag = node }; TreeViewItem.Items.Add(node.TreeViewItem); node.Initialize(); } }