Horizon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | using System; |
2 | using System.Threading; |
||
3 | using System.Windows.Forms; |
||
4 | |||
5 | namespace Horizon |
||
6 | { |
||
7 | internal class Program |
||
8 | { |
||
9 | #region Static Fields and Constants |
||
10 | |||
11 | private static readonly Mutex Mutex = new Mutex(true, Constants.AssemblyGuid); |
||
12 | |||
13 | #endregion |
||
14 | |||
15 | #region Private Methods |
||
16 | |||
17 | /// <summary> |
||
18 | /// The main entry point for the application. |
||
19 | /// </summary> |
||
20 | [STAThread] |
||
21 | private static void Main() |
||
22 | { |
||
23 | if (Mutex.WaitOne(TimeSpan.Zero, true)) |
||
24 | { |
||
25 | try |
||
26 | { |
||
27 | Application.EnableVisualStyles(); |
||
28 | Application.SetCompatibleTextRenderingDefault(false); |
||
29 | Application.Run(new MainForm(Mutex)); |
||
30 | } |
||
31 | finally |
||
32 | { |
||
33 | Mutex.ReleaseMutex(); |
||
34 | } |
||
35 | } |
||
36 | } |
||
37 | |||
38 | #endregion |
||
39 | } |
||
40 | } |