HamBook – Rev 5

Subversion Repositories:
Rev:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
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]
        static void Main()
        {
            if (Mutex.WaitOne(TimeSpan.Zero, true))
            {
                try
                {
                    Application.EnableVisualStyles();
                    Application.SetCompatibleTextRenderingDefault(false);
                    Application.Run(new Form1(Mutex));
                }
                finally
                {
                    Mutex.ReleaseMutex();
                }
            }
        }
    }
}