//This void Application_ContextMenuClose(Outlook.OlContextMenu ContextMenu) { selection = null; item = null; if (btnCheckForRule != null) { btnCheckForRule.Click -= new Office ._CommandBarButtonEvents_ClickEventHandler( btnRules_Click); } btnCheckForRule = null; }
public void ContextMenuClose(Outlook.OlContextMenu ContextMenu) { Utility.LogApplicationEvent(LogType.Event, (string.Format("{0}{1}", new StackTrace().GetFrame(0).GetMethod().Name, System.Environment.NewLine))); }