//--------------------------------------------------------------------------
        public DocumentsQueryController(
            DocumentsQueryDialog parentForm,
            BusinessLogic businessLogic,
            bool withNextButton)
        {
            _parentForm     = parentForm;
            _businessLogic  = businessLogic;
            _withNextButton = withNextButton;

            InitializeForWordsQuery();

            UpdateDocumentResultsCount();
            UpdateWordsFilterCount();
        }
        //--------------------------------------------------------------------------
        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();
        }