コード例 #1
0
        public static bool IsOnlyAppInstance()
        {
            appMutex = new AppMutex();
            bool gotMutex = appMutex.GetMutex();

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

            return(gotMutex);
        }
コード例 #2
0
ファイル: AppController.cs プロジェクト: tmzu/keymapper
        public static bool IsOnlyAppInstance()
        {
            appMutex = new AppMutex();
            bool gotMutex = appMutex.GetMutex();
            if (gotMutex == false)
                SwitchToExistingInstance();

            return gotMutex;
        }