Fixed bug where app was accidentally switched to en-us locale by old ENI code

This commit is contained in:
Daniel Schick 2024-04-24 11:21:59 +02:00
parent dba5cb3523
commit 4766584512
2 changed files with 2 additions and 3 deletions

View File

@ -141,8 +141,7 @@ namespace BreCalClient
#region protected #region protected
protected void addItem(object sender, RoutedEventArgs e) protected void addItem(object sender, RoutedEventArgs e)
{ {
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-us");
if (!this.IsReadOnly) if (!this.IsReadOnly)
{ {
this.CreateRequested?.Invoke(); this.CreateRequested?.Invoke();

View File

@ -38,7 +38,7 @@ namespace BreCalClient
this.dataGridShips.Initialize(); this.dataGridShips.Initialize();
this.dataGridShips.ItemsSource = BreCalLists.AllShips; this.dataGridShips.ItemsSource = BreCalLists.AllShips;
this.dataGridShips.CreateRequested += DataGridShips_CreateRequested; ; this.dataGridShips.CreateRequested += DataGridShips_CreateRequested;
this.dataGridShips.EditRequested += DataGridShips_EditRequested; this.dataGridShips.EditRequested += DataGridShips_EditRequested;
this.dataGridShips.DeleteRequested += DataGridShips_DeleteRequested; this.dataGridShips.DeleteRequested += DataGridShips_DeleteRequested;
} }