コード例 #1
0
 /// <summary>
 /// Sets current context
 /// Uses current thread UICulture.
 /// </summary>
 /// <param name="context"></param>
 public ApplicationResources()
 {
     _resourceCulture = Thread.CurrentThread.CurrentUICulture;
     _resourceContext = getResourceContext(_resourceCulture); 
     createNewResourceDictionary();
     ReloadResources();
 }
コード例 #2
0
 /// <summary>
 /// Sets current context and culture
 /// </summary>
 /// <param name="context"></param>
 /// <param name="culture"></param>
 public ApplicationResources(CultureInfo culture)        
 {
     _resourceContext = getResourceContext(culture);
     _resourceCulture = culture;
     ReloadResources();
 }