Fixed DeleteWindow and allowed it to close.

This commit is contained in:
alphafetus committed 2023-11-23 18:19:47 -05:00
1 parent 83a08edb2e
commit f98ff942bb
13 files changed
+361 -22

No files matched your search

@@ -1,15 +1,14 @@
using System.Reactive;
using PcgsInvUi.Views;
using ReactiveUI;
namespace PcgsInvUi.ViewModels;
public class DeleteWindowViewModel : ViewModelBase {
public ReactiveCommand<Unit, object> OkCommand { get; }
public ReactiveCommand<DeleteWindow, Unit> CancelCommand { get; }
public ReactiveCommand<Unit, object> CancelCommand { get; }
public DeleteWindowViewModel() {
OkCommand = ReactiveCommand.Create(() => (object)true);
CancelCommand = ReactiveCommand.Create<DeleteWindow>(window => window.Close());
CancelCommand = ReactiveCommand.Create(() => (object)false);
}
}
}