HamBook – Diff between revs 1 and 54
?pathlinks?
Rev 1 | Rev 54 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | using System; |
1 | using System; |
|
2 | using System.Collections.Generic; |
- | ||
3 | using System.Linq; |
- | ||
4 | using System.Threading; |
2 | using System.Threading; |
|
5 | using System.Threading.Tasks; |
- | ||
6 | using System.Windows.Forms; |
3 | using System.Windows.Forms; |
|
Line 7... | Line 4... | |||
7 | |
4 | |
|
8 | namespace HamBook |
5 | namespace HamBook |
|
9 | { |
6 | { |
|
10 | internal static class Program |
7 | internal static class Program |
|
11 | { |
8 | { |
|
Line 12... | Line 9... | |||
12 | private static readonly Mutex Mutex = new Mutex(true, Constants.AssemblyGuid); |
9 | private static readonly Mutex Mutex = new Mutex(true, Constants.AssemblyGuid); |
|
13 | |
10 | |
|
14 | /// <summary> |
11 | /// <summary> |
|
15 | /// The main entry point for the application. |
12 | /// The main entry point for the application. |
|
16 | /// </summary> |
13 | /// </summary> |
|
17 | [STAThread] |
14 | [STAThread] |
|
18 | static void Main() |
15 | private static void Main() |
|
19 | { |
16 | { |
|
20 | if (Mutex.WaitOne(TimeSpan.Zero, true)) |
17 | if (Mutex.WaitOne(TimeSpan.Zero, true)) |
|
21 | { |
18 | { |
|
Line 30... | Line 27... | |||
30 | Mutex.ReleaseMutex(); |
27 | Mutex.ReleaseMutex(); |
|
31 | } |
28 | } |
|
32 | } |
29 | } |
|
33 | } |
30 | } |
|
34 | } |
31 | } |
|
35 | } |
32 | } |
|
36 | |
33 | |