コード例 #1
0
        private void AddRootNode(TreeView tree, string path, string title)
        {
            var sitecorePath = new SitecorePath(title, path);

            sitecorePath.GetDecendents();
            var node = sitecorePath.GetNode();

            UpdateNode.AddTreeNode(sitecorePath, node.Nodes);
            tree.Nodes.Add(node);
        }
コード例 #2
0
        private static void AddRootNode(TreeView tree, string path, string title)
        {
            var sitecorePath = new SitecorePath(title, path);

            try
            {
                sitecorePath.GetDecendents();
            }
            catch (WebException)
            {
                Globals.SitecoreAddin.AlertConnectionFailure();
            }

            var node = sitecorePath.GetNode();

            UpdateNode.AddTreeNode(sitecorePath, node.Nodes);
            tree.Nodes.Add(node);
        }
コード例 #3
0
ファイル: TreeBrowser.cs プロジェクト: jayasimhas/Suseela
        private void AddRootNode(TreeView tree, string path, string title)
        {
            var sitecorePath = new SitecorePath(title, path);

            try
            {
                sitecorePath.GetDecendents();
            }
            catch (WebException)
            {
                MessageBox.Show(ConnectionLostMessage);
            }

            var node = sitecorePath.GetNode();

            UpdateNode.AddTreeNode(sitecorePath, node.Nodes);
            tree.Nodes.Add(node);
        }