Beispiel #1
0
        /// <summary>
        /// This function is the callback used to execute a command when the a menu item
        /// is clicked. See the Initialize method to see how the menu item is associated
        /// to this function using the OleMenuCommandService service and the MenuCommand
        /// class.
        /// </summary>
        private void AddWordExecuted(object sender, EventArgs e)
        {
            string word = GetApplicableWord(e);

            if (!string.IsNullOrEmpty(word))
            {
                HighlightWordsSettingsManager.ToggleWord(word);
            }
        }