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

@@ -7,12 +7,16 @@ public partial class StundenPage : ContentPage {
InitializeComponent();
if(BindingContext is StundenViewModel vm) {
vm.AlertEvent += Vm_AlertEvent;
vm.InfoEvent += Vm_InfoEvent;
}
}
private void Vm_AlertEvent(object? sender, string e) {
DisplayAlert("Fehler:", e, "OK");
}
private void Vm_InfoEvent(object? sender, string e) {
DisplayAlert("Information:", e, "OK");
}
protected override void OnAppearing() {
base.OnAppearing();