Display Info instead of Alert

This commit is contained in:
2024-09-26 17:23:47 +02:00
parent 2049a3a981
commit ed7040b715
2 changed files with 11 additions and 2 deletions

View File

@@ -25,6 +25,11 @@ namespace Jugenddienst_Stunden.ViewModels {
public ICommand SelectEntryCommand { get; }
public ICommand LoadDataCommand { get; private set; }
public event EventHandler<string> AlertEvent;
public event EventHandler<string> InfoEvent;
public object Stunden { get; }
@@ -138,7 +143,7 @@ namespace Jugenddienst_Stunden.ViewModels {
public event EventHandler<string> AlertEvent;
@@ -171,7 +176,7 @@ namespace Jugenddienst_Stunden.ViewModels {
////}
} catch (Exception e) {
DayTimes = new List<DayTime>();
AlertEvent?.Invoke(this, e.Message);
InfoEvent?.Invoke(this, e.Message);
}
}