ACAT.Lib.Extension.AppAgents.WindowsExplorer.WindowsExplorerAgentBase.displayScanner C# (CSharp) Метод

displayScanner() приватный Метод

Displays the scanner appropriate for the element that is currently in focus in the Windows explorer window
private displayScanner ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo, bool &handled ) : void
monitorInfo ACAT.Lib.Core.Utility.WindowActivityMonitorInfo Foreground window info
handled bool set to true if handled
Результат void
        private void displayScanner(WindowActivityMonitorInfo monitorInfo, ref bool handled)
        {
            Log.Debug("KILLROY Entered");
            if (monitorInfo.FocusedElement.Current.ControlType.ProgrammaticName == "ControlType.Edit")
            {
                Log.Debug("KILLROY controtype edit");

                base.OnFocusChanged(monitorInfo, ref handled);
                showPanel(this, new PanelRequestEventArgs(PanelClasses.Alphabet, monitorInfo));
                _scannerShown = true;
            }
            else// if (monitorInfo.IsNewWindow)
            {
                Log.Debug("KILLROY calling getmenu");

                String panel = PanelClasses.None;
                handled = getMenu(monitorInfo, ref panel);

                if (handled)
                {
                    showPanel(this, new PanelRequestEventArgs(panel, "Explorer", monitorInfo));
                    _scannerShown = true;
                }
            }
#if abc
            else
            {
                Log.Debug("KILLROY *** FALL THROUGH>  WILL NOT BE HANDLED");

                //handled = true;
            }
#endif
        }