/// <summary> /// 移出收藏夹 /// </summary> /// <param name="addTreeNodeAdvs">待移出的节点</param> public void RemoveFromFavorite() { this.BeginUpdate(); SdsiteXmlDocument doc = Service.Sdsite.CurrentDocument; BaseTreeNode favoriteNode = SiteManagerNode.FavoriteRootNode;//收藏夹根节点 BaseTreeNode[] arrSelectedNode = this.SelectedNodes.ToArray(); foreach (BaseTreeNode node in arrSelectedNode) { doc.RemoveFavorite(((ElementNode)node).Element.Id); } this.EndUpdate(); }