Add WarningView

This commit is contained in:
2026-02-16 18:16:21 +09:00
parent 3f14c3137a
commit e0b499dd3c
3 changed files with 65 additions and 0 deletions
+25
View File
@@ -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);
}
}