using System; using System.Threading; using System.Windows.Forms; namespace AdvertsingProfitControl { static class Program { /// /// The main entry point for the application. /// [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()); } } }