Beispiel #1
0
        public static object GetObject(string key)
        {
            object value = null;

            if (CustomResourceManager != null)
            {
                value = CustomResourceManager.GetObject(key);
            }

            return(value ?? (UseFallback ? DefaultResourceManager.GetObject(key) : null));
        }
Beispiel #2
0
 public static string GetString(string key)
 {
     if (CustomResourceManager != null)
     {
         var value = CustomResourceManager.GetString(key);
         return(value ?? (UseFallback ? DefaultResourceManager.GetString(key) : null));
     }
     else
     {
         return(DefaultResourceManager.GetString(key));
     }
 }
Beispiel #3
0
 public override void LoadContent()
 {
     DefaultResourceManager.Initialize(this.content);
 }