25 lines
351 B
C#
25 lines
351 B
C#
#nullable enable
|
|
|
|
using DialogHostAvalonia;
|
|
|
|
namespace MayShow.ViewModels;
|
|
|
|
class WarningViewModel
|
|
{
|
|
private string _error;
|
|
|
|
public WarningViewModel(string error)
|
|
{
|
|
_error = error;
|
|
}
|
|
|
|
public string Error
|
|
{
|
|
get => _error;
|
|
}
|
|
|
|
public void Close()
|
|
{
|
|
DialogHost.Close("DialogHost", null);
|
|
}
|
|
} |