Пример #1
0
        public bool RequestResource(string resource, out string path)
        {
            if (PlatformStructure != null)
            {
                if (PlatformStructure.RequestResource(resource, out path))
                {
                    return(true);
                }
            }
            if (MixedStructure != null)
            {
                if (MixedStructure.RequestResource(resource, out path))
                {
                    return(true);
                }
            }

            path = null;
            return(false);
        }
Пример #2
0
        public string RequestResource(string resource)
        {
            if (PlatformStructure != null)
            {
                string path = PlatformStructure.RequestResource(resource);
                if (path != null)
                {
                    return(path);
                }
            }
            if (MixedStructure != null)
            {
                string path = MixedStructure.RequestResource(resource);
                if (path != null)
                {
                    return(path);
                }
            }

            return(null);
        }