コード例 #1
0
ファイル: TopLevelRootItem.cs プロジェクト: mono/uia2atk
		internal void CheckAndHandleNewActiveWindow (UiaAtkBridge.Window newWin)
		{
			if (object.ReferenceEquals (currentActiveWindow, newWin))
				return;
			
			if (currentActiveWindow != null)
				currentActiveWindow.LoseActiveState ();
			currentActiveWindow = newWin;
			if (currentActiveWindow != null)
				currentActiveWindow.GainActiveState ();
		}
コード例 #2
0
ファイル: TopLevelRootItem.cs プロジェクト: ABEMBARKA/monoUI
        internal void CheckAndHandleNewActiveWindow(UiaAtkBridge.Window newWin)
        {
            if (object.ReferenceEquals(currentActiveWindow, newWin))
            {
                return;
            }

            if (currentActiveWindow != null)
            {
                currentActiveWindow.LoseActiveState();
            }
            currentActiveWindow = newWin;
            if (currentActiveWindow != null)
            {
                currentActiveWindow.GainActiveState();
            }
        }