Skip to content

Commit

Permalink
Merge pull request #2 from K3UL/master
Browse files Browse the repository at this point in the history
Added the "en-GB" culture
  • Loading branch information
ButchersBoy committed Nov 1, 2016
2 parents cc32164 + 70aa5d0 commit f4daea1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions F1InXAML/MainViewModel.cs
@@ -1,8 +1,10 @@
using System;
using System.ComponentModel;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Windows.Input;
using System.Windows.Markup;

Expand All @@ -15,6 +17,9 @@ public class MainViewModel : INotifyPropertyChanged, ISlideNavigationSubject

public MainViewModel()
{
CultureInfo ci = new CultureInfo("en-GB");
Thread.CurrentThread.CurrentCulture = ci;

CommandManager.RegisterClassCommandBinding(typeof(MainWindow), new CommandBinding(NavigationCommands.ShowRaceCommand, ShowRaceExecuted));
CommandManager.RegisterClassCommandBinding(typeof(MainWindow), new CommandBinding(NavigationCommands.ShowSeasonCommand, ShowSeasonExecuted));
CommandManager.RegisterClassCommandBinding(typeof(MainWindow), new CommandBinding(NavigationCommands.GoBackCommand, GoBackExecuted));
Expand Down

0 comments on commit f4daea1

Please sign in to comment.