Esempio n. 1
0
        public static bool IsOnlyAppInstance()
        {
            appMutex = new AppMutex();
            bool gotMutex = appMutex.GetMutex();

            if (gotMutex == false)
            {
                SwitchToExistingInstance();
            }

            return(gotMutex);
        }
Esempio n. 2
0
        public static bool IsOnlyAppInstance()
        {
            appMutex = new AppMutex();
            bool gotMutex = appMutex.GetMutex();
            if (gotMutex == false)
                SwitchToExistingInstance();

            return gotMutex;
        }