private void expr1ComboBox_DropDownClosed(object sender, EventArgs e)
        {
            key = 1;
            string ss = expr1ComboBox.Text;

            Perem.Runner     = expr1ComboBox.Text;
            Perem.PeopleName = expr1ComboBox.Text;
            WpfApp1.marathonDataSet marathonDataSet = ((WpfApp1.marathonDataSet)(this.FindResource("marathonDataSet")));
            WpfApp1.marathonDataSetTableAdapters.DataTable2TableAdapter dataTable2TableAdapter = new marathonDataSetTableAdapters.DataTable2TableAdapter();
            WpfApp1.marathonDataSetTableAdapters.DataTable1TableAdapter dataTable1TableAdapter = new marathonDataSetTableAdapters.DataTable1TableAdapter();
            dataTable1TableAdapter.findID(marathonDataSet.DataTable1, expr1ComboBox.Text);
            string id = marathonDataSet.DataTable1[0][1].ToString();

            dataTable2TableAdapter.FillBy(marathonDataSet.DataTable2, Convert.ToInt32(id));
            OrgName.Content = marathonDataSet.DataTable2[0][1].ToString();
            dataTable1TableAdapter.FillBy1(marathonDataSet.DataTable1);
            expr1ComboBox.Text = ss;
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            timerStart();
            WpfApp1.marathonDataSet marathonDataSet = ((WpfApp1.marathonDataSet)(this.FindResource("marathonDataSet")));
            // Загрузить данные в таблицу DataTable1. Можно изменить этот код как требуется.
            WpfApp1.marathonDataSetTableAdapters.DataTable1TableAdapter marathonDataSetDataTable1TableAdapter = new WpfApp1.marathonDataSetTableAdapters.DataTable1TableAdapter();
            marathonDataSetDataTable1TableAdapter.FillBy1(marathonDataSet.DataTable1);
            System.Windows.Data.CollectionViewSource dataTable1ViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("dataTable1ViewSource")));
            dataTable1ViewSource.View.MoveCurrentToFirst();
            string ss = expr1ComboBox.Text;

            Perem.PeopleName = expr1ComboBox.Text;
            //  WpfApp1.marathonDataSet marathonDataSet = ((WpfApp1.marathonDataSet)(this.FindResource("marathonDataSet")));
            WpfApp1.marathonDataSetTableAdapters.DataTable2TableAdapter dataTable2TableAdapter = new marathonDataSetTableAdapters.DataTable2TableAdapter();
            WpfApp1.marathonDataSetTableAdapters.DataTable1TableAdapter dataTable1TableAdapter = new marathonDataSetTableAdapters.DataTable1TableAdapter();
            dataTable1TableAdapter.findID(marathonDataSet.DataTable1, expr1ComboBox.Text);
            string id = marathonDataSet.DataTable1[0][1].ToString();

            dataTable2TableAdapter.FillBy(marathonDataSet.DataTable2, Convert.ToInt32(id));
            OrgName.Content = marathonDataSet.DataTable2[0][1].ToString();
            dataTable1TableAdapter.FillBy1(marathonDataSet.DataTable1);
            expr1ComboBox.Text = ss;
        }