Setting Culture
by admin on Dec.03, 2009, under c#
if (CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern != “yyyy/mm/dd”)
{
//Registry Logic
//Open Sub key
RegistryKey rkey = Registry.CurrentUser.OpenSubKey(@”Control Panel\International”, true);
///Set Values
rkey.SetValue(“sShortDate”, Constants.ShortDatePattern);
//Close the Registry
rkey.Close();
MessageBox.Show(“System has been reconfigured.” + “\r\n\r\n” + “Please restart application.”, Constants.ApplicationTitle, MessageBoxButton.OK, MessageBoxImage.Information);
Application.Current.Shutdown();
}