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); }
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); }
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); }