[#3] Services: Add 'Check internet connection' message
All checks were successful
Test / Run tests (push) Successful in 2m46s

This commit is contained in:
2024-07-28 09:35:01 +02:00
parent 38315cd928
commit 1bc0d67d26
3 changed files with 8 additions and 2 deletions

View File

@ -14,6 +14,7 @@ using Elwig.Helpers.Export;
using Microsoft.Win32;
using Elwig.ViewModels;
using System.IO;
using System.Net.Http;
namespace Elwig.Services {
public static class MemberService {
@ -453,6 +454,8 @@ namespace Elwig.Services {
MessageBox.Show($"Hochladen von {list.Count} Mitgliedern erfolgreich!", "Mitglieder hochgeladen",
MessageBoxButton.OK, MessageBoxImage.Information);
}
} catch (HttpRequestException exc) {
MessageBox.Show("Eventuell Internetverbindung prüfen!\n\n" + exc.Message, "Lieferungen hochladen", MessageBoxButton.OK, MessageBoxImage.Error);
} catch (Exception exc) {
MessageBox.Show(exc.Message, "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
}