Пример #1
0
 private void GuardExistence(string originalfilePath)
 {
     if (!(Exists(originalfilePath + STUDIO_EXTENSION) || Exists(originalfilePath + COMPILED_EXTENSION)))
     {
         throw ResourceException.ResourceBundleNotFound(PreFixed(originalfilePath));
     }
 }
        public ResourceManager LoadBundle(string filePath)
        {
            if (!Exists(filePath + ".resources"))
            {
                throw ResourceException.ResourceBundleNotFound(filePath);
            }
//            Console.WriteLine(_assembly.GetName().Name+"."+PreFixed(filePath));
//            if (!Exists(filePath + ".resources"))
//            {
//                throw ResourceException.ResourceBundleNotFound(filePath);
//            }
            return(new ResourceManager(_assembly.GetName().Name + "." + PreFixed(filePath), _assembly));
        }