Exemple #1
0
        /// <summary>Handles the onChange event of the CustomSearch edit box.
        /// </summary>
        /// <param name="control">The source of the event.</param>
        /// <param name="text">The updated text of the EditBox.</param>
        public void TextChanged(Office.IRibbonControl control, string text)
        {
            Outlook.Explorer explorer = ActiveExplorer;
            if (string.IsNullOrWhiteSpace(text))
            {
                currentSearchText = null;
                explorer.ClearSearch();
            }
            else
            {
                currentSearchText = text.Trim();

                explorer.Search(currentSearchText,
                                Outlook.OlSearchScope.olSearchScopeCurrentFolder);

                ribbonUI.ActivateTabMso("TabMail");
            }
        }
Exemple #2
0
 public void ActivateTabMso(string name)
 {
     ribbon.ActivateTabMso(name);
 }