diff options
Diffstat (limited to 'src/Notepad/Program.cs')
| -rw-r--r-- | src/Notepad/Program.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Notepad/Program.cs b/src/Notepad/Program.cs new file mode 100644 index 0000000..8cb5ba9 --- /dev/null +++ b/src/Notepad/Program.cs @@ -0,0 +1,23 @@ +using System;
+using System.Windows.Forms;
+using Notepad.Infrastructure.Container;
+using Notepad.Infrastructure.Extensions;
+using Notepad.Presentation.Context;
+
+namespace Notepad {
+ internal static class Program {
+ [STAThread]
+ private static void Main() {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.ThreadException += (sender, e) => e.Exception.LogError();
+ try {
+ Start.TheApplication();
+ Application.Run(Resolve.DependencyFor<NotepadApplicationContext>());
+ }
+ catch (Exception e1) {
+ e1.LogError();
+ }
+ }
+ }
+}
\ No newline at end of file |
