Initial commit.
This commit is contained in:
11
Shared.Wpf/BaseViewModel.cs
Normal file
11
Shared.Wpf/BaseViewModel.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace ClientApiPoC.Shared.Wpf {
|
||||
public abstract class BaseViewModel : NotifyPropertyChangedBase {
|
||||
protected async Task HandleErrorAsync(Exception ex) {
|
||||
if (ex == null) return;
|
||||
MessageBox.Show(ex.Message, "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
await Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user