From 90c56020d49d9310e80ecf0de9443e790fcbb524 Mon Sep 17 00:00:00 2001 From: dimentox Date: Tue, 3 May 2011 04:05:24 +0000 Subject: [PATCH] git-svn-id: https://lsleditor.svn.sourceforge.net/svnroot/lsleditor@35 3f4676ac-adda-40fd-8265-58d1435b1672 --- trunk/Solution/SolutionExplorer.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/trunk/Solution/SolutionExplorer.cs b/trunk/Solution/SolutionExplorer.cs index b427515..91ccd2e 100644 --- a/trunk/Solution/SolutionExplorer.cs +++ b/trunk/Solution/SolutionExplorer.cs @@ -2421,7 +2421,19 @@ namespace LSLEditor.Solution } } - } + public delegate void RemoveInventoryDelegate(Guid guid, SecondLife.String name); + public void RemoveInventory(Guid guid, SecondLife.String name) + { + + if (this.treeView1.InvokeRequired) + this.treeView1.Invoke(new RemoveInventoryDelegate(RemoveInventory), new object[] { guid, name }); + + TreeNode treeNode = FindGuid(this.treeView1.TopNode, guid); + if (treeNode == null) + return; + treeNode.Remove(); + } + } public class NodeSorter : System.Collections.IComparer { public int Compare(object x, object y)