Support for alternative culture info, in this way it can be guaranteed that ',' works always as a decimal point.

This commit is contained in:
Milan Hanajik
2015-04-28 16:17:36 +02:00
parent 39eb2cfd57
commit 32a3282d5d
2 changed files with 14 additions and 3 deletions
+4
View File
@@ -30,6 +30,8 @@ namespace TBF
public const string LocalSettingsFileName = "config.xml";
public const string LocalSettingsBackupName = "config.backup.xml";
public static System.Globalization.CultureInfo AltCulture;
/// Database related: This object reference is set after a successful user login
public static DatabaseSettings CurrentBench;
const string SQLiteDbFName = "SQLite.db";
@@ -143,6 +145,8 @@ namespace TBF
new System.Globalization.CultureInfo("en");
}
//AltCulture = null;
AltCulture = new System.Globalization.CultureInfo("SK");
/// This belongs to Application.Run(new MainWnd()) ...
/// and should be executed before opening 'loginDlg'