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