ShowErrorWindow now actually shows the ErrorWindow

This commit is contained in:
alphafetus committed 2023-11-15 11:34:02 -05:00
1 parent 99a666afd8
commit 4fcae0b3c7
10 files changed
+104 -30

No files matched your search

+2 -1
View File
@@ -14,6 +14,7 @@ public partial class MainWindow : ReactiveWindow<MainWindowViewModel> {
InitializeComponent();
this.WhenActivated(d => d(ViewModel!.ShowDeleteWindow.RegisterHandler(ShowDeleteWindowAsync)));
this.WhenActivated(d => d(ViewModel!.ShowExportWindow.RegisterHandler(ShowFilePickerAsync)));
this.WhenActivated(d => d(ViewModel!.ShowErrorWindow.RegisterHandler(ShowErrorWindowAsync)));
// this.WhenActivated(d => d(ViewModel!.ShowFindWindow.RegisterHandler(ShowFindWindowAsync)));
}
@@ -54,7 +55,7 @@ public partial class MainWindow : ReactiveWindow<MainWindowViewModel> {
}
}
public async Task ShowErrorWindowAsync(InteractionContext<Unit, Unit> interaction) {
public async Task ShowErrorWindowAsync(InteractionContext<ErrorWindowViewModel, Unit> interaction) {
var window = new ErrorWindow();
window.DataContext = interaction.Input;