ACAT.Extensions.Default.FunctionalAgents.SwitchWindowsAgent.SwitchWindowsScanner.handleWindowSelect C# (CSharp) Метод

handleWindowSelect() приватный метод

User selected a window to switch to. Trigger an event to indicate this.
private handleWindowSelect ( ACAT.Lib.Core.Utility.EnumWindows wInfo ) : void
wInfo ACAT.Lib.Core.Utility.EnumWindows Window info of the window selected
Результат void
        private void handleWindowSelect(EnumWindows.WindowInfo wInfo)
        {
            if (!User32Interop.IsWindow(wInfo.Handle) || !User32Interop.IsWindowVisible(wInfo.Handle))
            {
                DialogUtils.ShowTimedDialog(this, Resources.WindowDoesNotExist);
            }
            else if (DialogUtils.ConfirmScanner(string.Format(Resources.SwitchTo, wInfo.Title)))
            {
                if (EvtActivateWindow != null)
                {
                    EvtActivateWindow.BeginInvoke(this, wInfo, null, null);
                }
            }
        }