using System;
using System.Windows.Forms;

namespace AdvertsingProfitControl
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        private static void Main()
        {           
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.ThreadException += GlobalClasses.LogError;
            AppDomain.CurrentDomain.UnhandledException += GlobalClasses.LogError;
            //LogConsole console = LogConsole.GetStaticInstance;
            //var errorConsoleThread = new Thread(console.Show);
            //errorConsoleThread.IsBackground = true;
            //errorConsoleThread.Start();
            Application.Run(new FrmMain());
        }
    }
}
