private static void Main() { // Check for multiple instances. if (Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName).Length != 1) { return; } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); IrssLog.LogLevel = IrssLog.Level.Debug; IrssLog.Open("Tray Launcher.log"); Application.ThreadException += Application_ThreadException; Tray tray = new Tray(); if (tray.Start()) { Application.Run(); } Application.ThreadException -= Application_ThreadException; IrssLog.Close(); }
private static void Main() { // Check for multiple instances. if (Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName).Length != 1) return; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); IrssLog.LogLevel = IrssLog.Level.Debug; IrssLog.Open("Tray Launcher.log"); Application.ThreadException += Application_ThreadException; Tray tray = new Tray(); if (tray.Start()) Application.Run(); Application.ThreadException -= Application_ThreadException; IrssLog.Close(); }