Horizon – Diff between revs 1 and 17
?pathlinks?
Rev 1 | Rev 17 | |||
---|---|---|---|---|
Line -... | Line 1... | |||
- | 1 | using Serilog; |
||
1 | using System; |
2 | using System; |
|
2 | using System.IO; |
3 | using System.IO; |
|
- | 4 | using System.Reflection; |
||
3 | using System.Threading; |
5 | using System.Threading; |
|
4 | using System.Windows.Forms; |
6 | using System.Windows.Forms; |
|
Line 5... | Line 7... | |||
5 | |
7 | |
|
6 | namespace Horizon |
8 | namespace Horizon |
|
Line 29... | Line 31... | |||
29 | { |
31 | { |
|
30 | Application.EnableVisualStyles(); |
32 | Application.EnableVisualStyles(); |
|
31 | Application.SetCompatibleTextRenderingDefault(false); |
33 | Application.SetCompatibleTextRenderingDefault(false); |
|
32 | Application.Run(new MainForm(Mutex)); |
34 | Application.Run(new MainForm(Mutex)); |
|
33 | } |
35 | } |
|
- | 36 | catch(TargetInvocationException exception) |
||
- | 37 | { |
||
- | 38 | Log.Error(exception, "Error on startup."); |
||
- | 39 | } |
||
34 | finally |
40 | finally |
|
35 | { |
41 | { |
|
36 | Mutex.ReleaseMutex(); |
42 | Mutex.ReleaseMutex(); |
|
37 | } |
43 | } |
|
38 | } |
44 | } |