Exemplo n.º 1
0
 private void cleanUp(object stateInfo)
 {
     if (LLApplicationsManager.NumberOfAppsRemaining() == 0)
     {
         Logger.LogInfo("Finished launching all configured applications.");
         trayIcon.Dispose();
         Application.Exit();
     }
 }
Exemplo n.º 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            LLApplicationsManager.Start();
            initTrayIcon();

            Thread updateThread = new Thread(new ThreadStart(checkForUpdates));

            updateThread.Start();

            monitorTimer = new System.Threading.Timer(new TimerCallback(cleanUp), null, 0, 5000);
        }