private static void Main(string[] args) { Log.Debug("Starting NRobot Server"); var trayapp = new TrayApplication(); if (trayapp.IsRunning) { Application.Run(trayapp); } Application.Exit(); }
private static void Main(string[] args) { try { Log.Debug("Starting NRobot Server"); var trayapp = new TrayApplication(); if (trayapp.IsRunning) { Application.Run(trayapp); } Application.Exit(); } catch (Exception exc) { Log.Fatal(exc.Message, exc); } }