HamBook – Blame information for rev 60

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 using System;
60 office 2 using System.IO;
1 office 3 using System.Threading;
4 using System.Windows.Forms;
5  
6 namespace HamBook
7 {
8 internal static class Program
9 {
10 private static readonly Mutex Mutex = new Mutex(true, Constants.AssemblyGuid);
11  
12 /// <summary>
54 office 13 /// The main entry point for the application.
1 office 14 /// </summary>
15 [STAThread]
54 office 16 private static void Main()
1 office 17 {
60 office 18 Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory);
19  
1 office 20 if (Mutex.WaitOne(TimeSpan.Zero, true))
21 try
22 {
23 Application.EnableVisualStyles();
24 Application.SetCompatibleTextRenderingDefault(false);
25 Application.Run(new Form1(Mutex));
26 }
27 finally
28 {
29 Mutex.ReleaseMutex();
30 }
31 }
32 }
54 office 33 }