public static BoxSprite Find(BoxSprite.Name name) { BoxSpriteMan pBSMan = BoxSpriteMan.PrivGetInstance(); Debug.Assert(pBSMan != null); pBSMan.poNodeCompare.SetName(name); BoxSprite pBSnode = (BoxSprite)pBSMan.BaseFind(pBSMan.poNodeCompare); return(pBSnode); }
public static BoxSprite Find(BoxSprite.Name name) { BoxSpriteMan pMan = BoxSpriteMan.PrivGetInstance(); Debug.Assert(pMan != null); // Compare functions only compares two Nodes // So: Use the Compare Node - as a reference // use in the Compare() function pMan.poNodeCompare.name = name; BoxSprite pData = (BoxSprite)pMan.BaseFind(pMan.poNodeCompare); return(pData); }