예제 #1
0
 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();
 }
예제 #2
0
 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;
 }
 public webBrowserScriptingCallback(ExportGarminCommunicatorWindow gm)
 {
     _gm = gm;
 }