private void SelectFile_Click(object sender, RoutedEventArgs e)
 {
     ParcerDataTable = new ParcerDataTable();
     if (ParcerDataTable.GetResultOpenFileDialog() == true)
     {
         TextBoxNotFoundFile.Text = "Файл выбран";
     }
     else
     {
         TextBoxNotFoundFile.Text = "Файл не выбран";
     }
 }
        private void OpenConfiguration(object sender, RoutedEventArgs e)
        {
            Microsoft.Win32.OpenFileDialog fileDialog = new Microsoft.Win32.OpenFileDialog();
            fileDialog.Filter = "Файлы txt|*.txt";

            if (fileDialog.ShowDialog() == true)
            {
                string Path = fileDialog.FileName;

                try
                {
                    using (StreamReader sr = new StreamReader(Path, System.Text.Encoding.Default))
                    {
                        ParcerDataTable = new ParcerDataTable(sr.ReadLine());                           //путь к xlsx
                        Checked_name_column_value.Text             = sr.ReadLine();
                        Checked_name_column_time.Text              = sr.ReadLine();
                        Checked_number_list.Text                   = sr.ReadLine();
                        Checked_number_line_start_information.Text = sr.ReadLine();
                        Checked_number_line_end_information.Text   = sr.ReadLine();
                        Checked_color_series.Text                  = sr.ReadLine();
                        NameSeries.Text = sr.ReadLine();
                        if (sr.ReadLine() == "true")
                        {
                            Checked_flag_simplified_date.IsChecked = true;
                        }
                        else
                        {
                            Checked_flag_simplified_date.IsChecked = false;
                        }
                        TextBoxNotFoundFile.Text = "Файл выбран";
                    }
                }
                catch
                {
                    TextBoxNotFoundFile.Text = "Файл не выбран";
                    WindowError windowError = new WindowError("Не удалось прочитать файл");
                    windowError.Show();
                    return;
                }
            }
        }