diff --git a/ViewModels/WarningViewModel.cs b/ViewModels/WarningViewModel.cs new file mode 100644 index 0000000..087b04a --- /dev/null +++ b/ViewModels/WarningViewModel.cs @@ -0,0 +1,25 @@ +#nullable enable + +using DialogHostAvalonia; + +namespace ReceiptPDFBuilder.ViewModels; + +class WarningViewModel +{ + private string _error; + + public WarningViewModel(string error) + { + _error = error; + } + + public string Error + { + get => _error; + } + + public void Close() + { + DialogHost.Close("DialogHost", null); + } +} \ No newline at end of file diff --git a/Views/WarningView.axaml b/Views/WarningView.axaml new file mode 100644 index 0000000..cf0a3ca --- /dev/null +++ b/Views/WarningView.axaml @@ -0,0 +1,25 @@ + + + +