private async void Button_Click(object sender, RoutedEventArgs e) { if (Core.ApplicationData.Instance.ActiveDatabase != null) { Import imp = new Import(); await imp.UpdateGeocachesAsync(Core.ApplicationData.Instance.ActiveDatabase); Close(); } }