9 using System.Windows.Media; |
9 using System.Windows.Media; |
10 using System.Windows.Media.Animation; |
10 using System.Windows.Media.Animation; |
11 using System.Windows.Shapes; |
11 using System.Windows.Shapes; |
12 using System.Threading; |
12 using System.Threading; |
13 using System.Globalization; |
13 using System.Globalization; |
|
14 using System.Resources; |
|
15 using Iri.Modernisation.BaseMVVM.Commands; |
14 namespace Iri.Modernisation |
16 namespace Iri.Modernisation |
15 { |
17 { |
16 public partial class App : Application |
18 public partial class App : Application |
17 { |
19 { |
18 |
20 |
19 public App() |
21 public App() |
20 { |
22 { |
21 this.Startup += this.Application_Startup; |
23 this.Startup += this.Application_Startup; |
22 this.Exit += this.Application_Exit; |
24 this.Exit += this.Application_Exit; |
23 this.UnhandledException += this.Application_UnhandledException; |
25 this.UnhandledException += this.Application_UnhandledException; |
|
26 Commands.FlipView.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(FlipView_Executed); |
|
27 InitializeComponent(); |
|
28 } |
24 |
29 |
25 InitializeComponent(); |
30 void FlipView_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) |
|
31 { |
|
32 CultureInfo culture = new CultureInfo("en-US"); |
|
33 Thread.CurrentThread.CurrentCulture = culture; |
|
34 Thread.CurrentThread.CurrentUICulture = culture; |
|
35 |
|
36 this.RootVisual = new MainPage(); |
26 } |
37 } |
27 |
38 |
28 private void Application_Startup(object sender, StartupEventArgs e) |
39 private void Application_Startup(object sender, StartupEventArgs e) |
29 { |
40 { |
30 CultureInfo culture = new CultureInfo("en-US"); |
41 //CultureInfo culture = new CultureInfo("en-US"); |
31 Thread.CurrentThread.CurrentCulture = culture; |
42 //Thread.CurrentThread.CurrentCulture = culture; |
32 Thread.CurrentThread.CurrentUICulture = culture; |
43 //Thread.CurrentThread.CurrentUICulture = culture; |
|
44 |
33 this.RootVisual = new MainPage(); |
45 this.RootVisual = new MainPage(); |
|
46 |
34 } |
47 } |
35 |
48 |
36 private void Application_Exit(object sender, EventArgs e) |
49 private void Application_Exit(object sender, EventArgs e) |
37 { |
50 { |
38 |
51 |