23 lines
545 B
C#
23 lines
545 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Globalization;
|
|||
|
using System.Linq;
|
|||
|
|
|||
|
namespace Plane.Globalization
|
|||
|
{
|
|||
|
public static class CultureInfoUtils
|
|||
|
{
|
|||
|
public static event EventHandler UICultureChanged;
|
|||
|
|
|||
|
public static IEnumerable<CultureInfo> GetCultures(params string[] names)
|
|||
|
{
|
|||
|
return names.Select(name => new CultureInfo(name));
|
|||
|
}
|
|||
|
|
|||
|
public static void RaiseUICultureChanged()
|
|||
|
{
|
|||
|
UICultureChanged?.Invoke(null, EventArgs.Empty);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|