diff --git a/PcgsInvUi/PcgsInvUi.csproj b/PcgsInvUi/PcgsInvUi.csproj index 0975dd1..d44ea27 100644 --- a/PcgsInvUi/PcgsInvUi.csproj +++ b/PcgsInvUi/PcgsInvUi.csproj @@ -23,7 +23,7 @@ - + diff --git a/PcgsInvUi/ViewModels/ErrorWindowViewModel.cs b/PcgsInvUi/ViewModels/ErrorWindowViewModel.cs index 116b3d2..6d93ac2 100644 --- a/PcgsInvUi/ViewModels/ErrorWindowViewModel.cs +++ b/PcgsInvUi/ViewModels/ErrorWindowViewModel.cs @@ -1,22 +1,26 @@ -using System; using System.Reactive; -using ReactiveUI; +using System.Security.Principal; using PcgsInvUi.Views; +using ReactiveUI; namespace PcgsInvUi.ViewModels; public class ErrorWindowViewModel : ViewModelBase { - public Exception DisplayedException { + public string DisplayedMessage { get => _message; set => this.RaiseAndSetIfChanged(ref _message, value); } - private Exception _message; + private string _message; public ReactiveCommand CloseCommand { get; } - public ErrorWindowViewModel(string message) { - CloseCommand = ReactiveCommand.Create(window => { window.Close(); }); + public ErrorWindowViewModel(string message) + { + DisplayedMessage = message; + + CloseCommand = ReactiveCommand.Create(window => window.Close()); } + } \ No newline at end of file diff --git a/PcgsInvUi/Views/DeleteWindow.axaml b/PcgsInvUi/Views/DeleteWindow.axaml index f4c756c..a967024 100644 --- a/PcgsInvUi/Views/DeleteWindow.axaml +++ b/PcgsInvUi/Views/DeleteWindow.axaml @@ -18,7 +18,7 @@