From 5ee1f55497a4e30322a56f133f897ecde1612967 Mon Sep 17 00:00:00 2001 From: mo Date: Sun, 4 Nov 2018 15:22:16 -0700 Subject: initial commit. --- src/Notepad/Program.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/Notepad/Program.cs (limited to 'src/Notepad/Program.cs') 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()); + } + catch (Exception e1) { + e1.LogError(); + } + } + } +} \ No newline at end of file -- cgit v1.2.3