Esempio n. 1
0
 private void AddServerNode(NDistServerNode node)
 {
     node.TreeViewItem = new TreeViewItem {
         Header = TreeviewHelper.CreateHeader(node.Address, "/Images/server.png"), Tag = node
     };
     TreeViewItem.Items.Add(node.TreeViewItem);
     TreeViewItem.IsExpanded = true;
     node.Initialize();
 }
Esempio n. 2
0
 private void RefreshHeader()
 {
     if (Service.RunningStatus == RunningStatus.Started)
     {
         TreeViewItem.Header = TreeviewHelper.CreateHeader(Service.Name, "/Images/service_running.png");
     }
     else
     {
         TreeViewItem.Header = TreeviewHelper.CreateHeader(Service.Name, "/Images/service.png");
     }
 }
Esempio n. 3
0
        public void Initialize()
        {
            var node = new NDistServicesNode(_client, _serverListener)
            {
                TreeView = TreeView
            };

            node.TreeViewItem = new TreeViewItem {
                Header = TreeviewHelper.CreateHeader("Services", "/Images/services.png"), Tag = node
            };
            TreeViewItem.Items.Add(node.TreeViewItem);
            node.Initialize();
        }