// ---------------------------------------------------------------------------------
        bool FilterIn(iCS_EditorObject eObj)
        {
            if (eObj == null || !myIStorage.IsIdValid(eObj.InstanceId))
            {
                return(false);
            }
            // Don't display object instance internals.
            var topObjectInstance = eObj.TopObjectInstanceNode();

            if (topObjectInstance != null)
            {
                if (topObjectInstance != eObj.Parent)
                {
                    return(false);
                }
                if (eObj.IsNode)
                {
                    return(false);
                }
            }
            // Filter according to string.
            if (iCS_Strings.IsEmpty(mySearchString))
            {
                return(true);
            }
            if (eObj.DisplayName.ToUpper().IndexOf(mySearchString.ToUpper()) != -1)
            {
                return(true);
            }
            return(false);
        }