public ListTemplateNode(WebNode webTreeNode, SPListTemplate template) { this.Tag = template; this.SPParent = webTreeNode.Web; this.WebTreeNode = webTreeNode; this.Setup(); }
public ListNode(WebNode webNode, SPList list) { this.Tag = list; this.SPParent = list.ParentWeb; this.WebNode = webNode; this.Setup(); this.Nodes.Add(new ExplorerNodeBase("Dummy")); }
public ListTemplateCollectionNode(WebNode webTreeNode, SPWeb web) { this.Text = SPMLocalization.GetString("ListTemplates_Text"); this.ToolTipText = SPMLocalization.GetString("ListTemplates_ToolTip"); this.Name = "ListTemplates"; this.Tag = web.ListTemplates; this.SPParent = web; this.WebTreeNode = webTreeNode; int index = Program.Window.Explorer.AddImage(this.ImageUrl()); this.ImageIndex = index; this.SelectedImageIndex = index; //this.ContextMenuStrip = SPMMenu.Strips.Refresh; if (web.Lists.Count > 0) { this.Nodes.Add(new ExplorerNodeBase("Dummy")); } else { this.HasChildrenLoaded = true; } }