public override Stream OpenStream(string filename)
        {
            Stream stream = null;

            if (_provider != null)
            {
                stream = _provider.OpenStream(filename);
            }

            if (stream == null)
            {
                stream = EmbeddedProviderHelper.GetResource(_assembly, _namespace, filename);
            }

            return(stream);
        }
Esempio n. 2
0
        public override Stream OpenFont(string folder, string id)
        {
            Stream stream = null;

            if (_provider != null)
            {
                stream = _provider.OpenFont(folder, id);
            }

            if (stream == null)
            {
                string filename = folder + (folder.Length > 0 ? "/" : "") + id;
                stream = EmbeddedProviderHelper.GetResource(_assembly, _namespace, filename);
            }

            return(stream);
        }