Beispiel #1
0
 /// <summary>
 /// Change the current culture used in the application.
 /// If the desired culture is available all localized elements are updated.
 /// </summary>
 /// <param name="culture">Culture to change to</param>
 public static void ChangeCulture(CultureInfo culture)
 {
     if (SupportedCultures.Contains(culture))
     {
         Resources.Culture = culture;
         ResourceProvider.Refresh();
     }
 }