Beispiel #1
0
        //this allows for custom locators to be injected into the system.  Usually used in conjunction
        //with a custom provider that understands the locations passed to it by the locator
        public void AddResourceLocator(IResourceLocator locator, bool prepend)
        {
            if (locator == null)
            {
                return;
            }

            if (prepend)
            {
                m_locators.Insert(0, locator);
            }
            else
            {
                m_locators.Add(locator);
            }
            locator.OnAddedToResourceManager();
        }