ACAT.Extensions.Default.FunctionalAgents.LaunchAppAgent.LaunchAppAgent.Activate C# (CSharp) Méthode

Activate() public méthode

Invoked when the Functional agent is activated. This is the entry point.
public Activate ( ) : bool
Résultat bool
        public override bool Activate()
        {
            ExitCode = CompletionCode.ContextSwitch;
            _appToLaunchInfo = null;
            _launchAppScanner = Context.AppPanelManager.CreatePanel("LaunchAppScanner") as LaunchAppScanner;

            if (_launchAppScanner != null)
            {
                _launchAppScanner.FormClosing += _form_FormClosing;
                _launchAppScanner.EvtQuit += _launchAppScanner_EvtQuit;
                _launchAppScanner.EvtLaunchApp += _launchAppScanner_EvtLaunchApp;
                _launchAppScanner.EvtShowScanner += launchAppScanner_EvtShowScanner;

                Context.AppPanelManager.ShowDialog(_launchAppScanner);
            }

            return true;
        }