git-svn-id: https://lsleditor.svn.sourceforge.net/svnroot/lsleditor@35 3f4676ac-adda-40fd-8265-58d1435b1672
This commit is contained in:
parent
ad075a1fc8
commit
90c56020d4
1 changed files with 13 additions and 1 deletions
|
@ -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
|
public class NodeSorter : System.Collections.IComparer
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue