ACAT.Lib.Extension.AppAgents.Outlook.OutlookAgentBase.OnContextMenuRequest C# (CSharp) 메소드

OnContextMenuRequest() 공개 메소드

Displays the contextual menu
public OnContextMenuRequest ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo ) : void
monitorInfo ACAT.Lib.Core.Utility.WindowActivityMonitorInfo Foreground window info
리턴 void
        public override void OnContextMenuRequest(WindowActivityMonitorInfo monitorInfo)
        {
            if (autoSwitchScanners)
            {
                String panel;
                String title = PanelTitle;

                switch (outlookWindowType)
                {
                    case OutlookWindowTypes.OpenNote:
                        panel = "OutlookOpenNoteContextMenu";
                        break;

                    default:
                        panel = getContextualMenuForWindow(outlookWindowType, ref title);
                        break;
                }

                showPanel(this, new PanelRequestEventArgs(panel, title, monitorInfo));
            }
            else
            {
                showPanel(this, new PanelRequestEventArgs("OutlookContextMenu", PanelTitle, monitorInfo));
            }
        }