git-svn-id: https://lsleditor.svn.sourceforge.net/svnroot/lsleditor@35 3f4676ac-adda-40fd-8265-58d1435b1672

This commit is contained in:
dimentox 2011-05-03 04:05:24 +00:00
parent ad075a1fc8
commit 90c56020d4

View file

@ -2421,6 +2421,18 @@ 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
{