private void OnExportButtonClick(object sender, RoutedEventArgs e) { try { LocationSaveDialog.ShowImport(_content.Where(l => l.Importable != LocationProperty.None && l.SaveRequest == LocationProperty.None)); } catch (Exception ex) { UIHelper.ShowError(ex); } }
public static void ShowImport(IEnumerable <Location> locations) { LocationSaveDialog dlg = new LocationSaveDialog(Mode.Import, locations); dlg.ShowDialog(); }