master
 1using System;
 2using System.Windows.Forms;
 3using Notepad.Infrastructure.Container;
 4using Notepad.Infrastructure.Extensions;
 5using Notepad.Presentation.Context;
 6
 7namespace Notepad {
 8    internal static class Program {
 9        [STAThread]
10        private static void Main() {
11            Application.EnableVisualStyles();
12            Application.SetCompatibleTextRenderingDefault(false);
13            Application.ThreadException += (sender, e) => e.Exception.LogError();
14            try {
15                Start.TheApplication();
16                Application.Run(Resolve.DependencyFor<NotepadApplicationContext>());
17            }
18            catch (Exception e1) {
19                e1.LogError();
20            }
21        }
22    }
23}