private async Task PerformExportAsync() { if (Core.Settings.Default.GPXTargetDevice == TargetDevice.GarminCommunicator) { ExportGarminCommunicatorWindow dlg = new ExportGarminCommunicatorWindow(_gcList); dlg.ShowDialog(); } else { await Task.Run(() => { if (Core.Settings.Default.GPXExportGGZ) { exportToGGZ(); } else { exportToGPX(); } }); } Close(); }
public webBrowserScriptingCallback(ExportGarminCommunicatorWindow gm) { _gm = gm; }