private void btnAddC_Click(object sender, RoutedEventArgs e)
        {
            WinCountry window = new WinCountry();

            window.ShowDialog();

            dgCountry.ItemsSource = ProcessFactory.GetCountryProcess().GetList();
        }
        private void btnEditC_Click(object sender, RoutedEventArgs e)
        {
            CountryDto item = dgCountry.SelectedItem as CountryDto;

            if (item == null)
            {
                MessageBox.Show("Выберите запись для редактирования", "Редактирование");
                return;
            }

            WinCountry window = new WinCountry();

            window.Load(item);
            window.ShowDialog();
            btnUpdateC_Click(sender, e);
        }