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