Пример #1
0
        private void MenuItem_Click_6(object sender, RoutedEventArgs e)
        {
            LitDbContext db = new LitDbContext();

            try
            {
                db.PopulateCounties();
                MessageBox.Show("The Counties was successfully saved.", "Done", MessageBoxButton.OK, MessageBoxImage.Information);
            }
            catch (Exception expt)
            {
                ErrorTextBox.Text = expt.Message;
            }
        }