private void ChooseFile_Click(object sender, RoutedEventArgs e)
        {
            originalText = null;
            processedText = null;

            //Выбор типа открытия файла
            if (comboBoxTypeOpenFile.SelectedIndex == 1)
            {
                OpenFileDialog openFileDialog = new OpenFileDialog();
                openFileDialog.Filter = "Текстовые файлы|*.txt";
                openFileDialog.Title = "Выбирете текстовый файл";

                if (openFileDialog.ShowDialog() == true)
                    originalText = File.ReadAllText(openFileDialog.FileName, Encoding.Default);
            }
            else
            {
                InputText it = new InputText();
                it.ShowDialog();
            }

            //обработка originalText, разблокировка элементов интерфейса для дальнейшей работы
            if (!String.IsNullOrEmpty(originalText))
            {
                this.Title = "CountWordsApp: preparing for displaying read file...";
                Task.Factory.StartNew(() => Dispatcher.Invoke(() => MainTextBox.Text = originalText))
                    .ContinueWith(prevTask => Dispatcher.Invoke(() => this.Title = "CountWordsApp: done"));

                processedText = originalText.ToLower();

                string[] mas = new string[] { "®", "“", "”", "\"", "«", "»", "’", " - ", " — ", "—", "–", ":", ";", "(", ")", "[", "]", "%", "*", "...", "…", ",", ".", "!", "?", "#" };

                for (int i = 0; i < mas.Length; i++)
                    processedText = processedText.Replace(mas[i], "").Replace(i.ToString(), "");

                processedText = processedText.Replace("/", " ").Replace("\r", " ").Replace("\n", " ");

                comboBoxTypeViewText.IsEnabled = true;
                ChooseContent.IsEnabled = true;
                CountWords.IsEnabled = true;
            }
            else
                MessageBox.Show("Текст для анализа не выбран!", "Warning!", MessageBoxButton.OK, MessageBoxImage.Warning);
        }