public int GetTreeViewSelectionID(SpriteCache sprite)
 {
     if (sprite != null)
     {
         return(sprite.GetInstanceID());
     }
     return(0);
 }
Ejemplo n.º 2
0
 private static TreeViewItem CreateTreeViewItem(SpriteCache part)
 {
     return(new TreeViewItemBase <SpriteCache>(part.GetInstanceID(), -1, part.name, part));
 }