Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 2
0
        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();
            }
        }