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

Activate() публичный Метод

Invoked when the Functional agent is activated. This is the entry point.
public Activate ( ) : bool
Результат bool
        public override bool Activate()
        {
            _windowInfo = null;
            ExitCode = CompletionCode.ContextSwitch;
            _switchWindowsScanner = Context.AppPanelManager.CreatePanel("SwitchWindowsScanner") as SwitchWindowsScanner;

            if (_switchWindowsScanner != null)
            {
                subscribeToEvents();

                _switchWindowsScanner.FilterByProcessName = FilterByProcessName;
                Context.AppPanelManager.ShowDialog(_switchWindowsScanner);
            }

            return true;
        }