HamBook – Diff between revs 56 and 60
?pathlinks?
Rev 56 | Rev 60 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | using System; |
1 | using System; |
|
- | 2 | using System.IO; |
||
2 | using System.Threading; |
3 | using System.Threading; |
|
3 | using System.Windows.Forms; |
4 | using System.Windows.Forms; |
|
Line 4... | Line 5... | |||
4 | |
5 | |
|
5 | namespace HamBook |
6 | namespace HamBook |
|
Line 12... | Line 13... | |||
12 | /// The main entry point for the application. |
13 | /// The main entry point for the application. |
|
13 | /// </summary> |
14 | /// </summary> |
|
14 | [STAThread] |
15 | [STAThread] |
|
15 | private static void Main() |
16 | private static void Main() |
|
16 | { |
17 | { |
|
- | 18 | Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory); |
||
- | 19 | |
||
17 | if (Mutex.WaitOne(TimeSpan.Zero, true)) |
20 | if (Mutex.WaitOne(TimeSpan.Zero, true)) |
|
18 | try |
21 | try |
|
19 | { |
22 | { |
|
20 | Application.EnableVisualStyles(); |
23 | Application.EnableVisualStyles(); |
|
21 | Application.SetCompatibleTextRenderingDefault(false); |
24 | Application.SetCompatibleTextRenderingDefault(false); |