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