HamBook – Rev 60

Subversion Repositories:
Rev:
using System;
using System.IO;
using System.Threading;
using System.Windows.Forms;

namespace HamBook
{
    internal static class Program
    {
        private static readonly Mutex Mutex = new Mutex(true, Constants.AssemblyGuid);

        /// <summary>
        ///     The main entry point for the application.
        /// </summary>
        [STAThread]
        private static void Main()
        {
            Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory);

            if (Mutex.WaitOne(TimeSpan.Zero, true))
                try
                {
                    Application.EnableVisualStyles();
                    Application.SetCompatibleTextRenderingDefault(false);
                    Application.Run(new Form1(Mutex));
                }
                finally
                {
                    Mutex.ReleaseMutex();
                }
        }
    }
}

Generated by GNU Enscript 1.6.5.90.