blob: 8cb5ba919ab055ba6992a16293ffb236b081c38b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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();
}
}
}
}
|