Exemplo n.º 1
0
        private static void Main(string[] args)
        {
            Log.Debug("Starting NRobot Server");
            var trayapp = new TrayApplication();

            if (trayapp.IsRunning)
            {
                Application.Run(trayapp);
            }
            Application.Exit();
        }
Exemplo n.º 2
0
 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);
     }
 }