//-------------------------------------------------------------------------
        public void InspectWord(Word word)
        {
            WordsInspectorDialog wordInspector = new WordsInspectorDialog(
                _businessLogic, null, false, word);

            wordInspector.ShowDialog();
        }
        //--------------------------------------------------------------------------
        public void InspectGroups()
        {
            WordsInspectorDialog wordsQuery = new WordsInspectorDialog(
                _businessLogic,
                new List <Document>(),
                true);

            wordsQuery.ShowDialog();
        }
 //--------------------------------------------------------------------------
 public WordsInspectorController(
     WordsInspectorDialog parentForm,
     BusinessLogic businessLogic,
     List <Document> documentsFilter,
     bool showGroups,
     Word wordToInspect)
 {
     _parentForm      = parentForm;
     _businessLogic   = businessLogic;
     _documentsFilter = documentsFilter;
     _showGroups      = showGroups;
     _wordToInspect   = wordToInspect;
 }
        //--------------------------------------------------------------------------
        public void InspectWords()
        {
            DocumentsQueryDialog documentsQuery =
                new DocumentsQueryDialog(_businessLogic, true);
            DialogResult result = documentsQuery.ShowDialog();

            if (result != DialogResult.OK)
            {
                return;
            }

            WordsInspectorDialog wordsQuery = new WordsInspectorDialog(
                _businessLogic,
                documentsQuery.SelectedDocuments);

            wordsQuery.ShowDialog();
        }