Skip to content

Commit 6714609

Browse files
committed
Consolidated namespace in App.xaml.cs and App.xaml
1 parent 51ccbb1 commit 6714609

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

source/MsgBoxDemo/App.xaml.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
{

source/MsgBoxDemo/MainWindow.xaml.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)