/// <summary>
 /// Removesthe selected word from the words to filter list
 /// </summary>
 public void RemoveFromWordList(string word)
 {
     if (!string.IsNullOrEmpty(word) && !string.IsNullOrWhiteSpace(word))
     {
         WordsToFilter.Remove(word);
     }
 }
 /// <summary>
 /// Adds
 /// </summary>
 public void AddToWordList(string word)
 {
     if (!string.IsNullOrEmpty(word) && !string.IsNullOrWhiteSpace(word))
     {
         WordsToFilter.Add(word);
     }
 }
        /// <summary>
        /// Sends back the list with words to filter to the calling viewmodel, and closes the current window
        /// </summary>
        public void FinishWordFiltering(ICloseable window)
        {
            if (WordsToFilter != null)
            {
                documentHandlerViewModel.FinishReportWordFiltering(WordsToFilter.ToList());
            }

            if (window != null)
            {
                window.Close();
            }
        }