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