Exemplo n.º 1
0
        static void Main()
        {
            if (!SingleInstance.Start())
            {
                // Another instance is already started.
                return;
            }

            CheckAutostart();

            try
            {
                var applicationContext = new TrayApplicationContext();
                Application.Run(applicationContext);
            }
            catch (Exception ex)
            {
                Logger.Instance().Err(ex.Message);
            }

            SingleInstance.Stop();
        }
Exemplo n.º 2
0
        static void Main()
        {
            if (!SingleInstance.Start()) 
            {
                // Another instance is already started.
                return;
            }

            CheckAutostart();

            try
            {
                var applicationContext = new TrayApplicationContext();
                Application.Run(applicationContext);
            }
            catch (Exception ex)
            {
                Logger.Instance().Err(ex.Message);
            }

            SingleInstance.Stop();
        }