File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1- namespace MsgBoxSamples
1+ namespace MsgBoxDemo
22{
33 using System . Windows ;
44 using System . Windows . Threading ;
@@ -12,7 +12,14 @@ public partial class App : Application
1212 {
1313 public App ( )
1414 {
15- }
15+ ////Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
16+ ////Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
17+
18+ ////Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE");
19+ ////Thread.CurrentThread.CurrentUICulture = new CultureInfo("de-DE");
20+
21+ ServiceContainer . Instance . AddService < IMessageBoxService > ( new MessageBoxService ( ) ) ;
22+ }
1623
1724 private void App_DispatcherUnhandledException ( object sender , DispatcherUnhandledExceptionEventArgs e )
1825 {
Original file line number Diff line number Diff line change @@ -15,14 +15,6 @@ public MainWindow()
1515 {
1616 this . InitializeComponent ( ) ;
1717
18- ////Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
19- ////Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
20-
21- ////Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE");
22- ////Thread.CurrentThread.CurrentUICulture = new CultureInfo("de-DE");
23-
24- ServiceContainer . Instance . AddService < IMessageBoxService > ( new MessageBoxService ( ) ) ;
25-
2618 this . DataContext = new MsgBoxTestViewModel ( ) ;
2719 }
2820 #endregion constructor
You can’t perform that action at this time.
0 commit comments