Пример #1
0
        private void InitializeMainTree()
        {
            var node = new NDistServersNode {
                TreeView = MainTree
            };

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