WPF: Fix build

This commit is contained in:
Genteure 2021-07-15 20:20:13 +08:00
parent b09aca1bee
commit 3e3cb142fd
2 changed files with 6 additions and 4 deletions

View File

@ -12,7 +12,7 @@
xmlns:local="clr-namespace:BililiveRecorder.WPF.Pages" xmlns:local="clr-namespace:BililiveRecorder.WPF.Pages"
xmlns:model="clr-namespace:BililiveRecorder.WPF.Models" xmlns:model="clr-namespace:BililiveRecorder.WPF.Models"
xmlns:c="clr-namespace:BililiveRecorder.WPF.Converters" xmlns:c="clr-namespace:BililiveRecorder.WPF.Converters"
xmlns:t="clr-namespace:BililiveRecorder.ToolBox.Commands;assembly=BililiveRecorder.ToolBox" xmlns:t="clr-namespace:BililiveRecorder.ToolBox.Tool.Analyze;assembly=BililiveRecorder.ToolBox"
xmlns:tr="clr-namespace:BililiveRecorder.ToolBox.ProcessingRules;assembly=BililiveRecorder.ToolBox" xmlns:tr="clr-namespace:BililiveRecorder.ToolBox.ProcessingRules;assembly=BililiveRecorder.ToolBox"
mc:Ignorable="d" DataContext="{x:Null}" mc:Ignorable="d" DataContext="{x:Null}"
d:DesignHeight="600" d:DesignWidth="900" d:DesignHeight="600" d:DesignWidth="900"

View File

@ -4,7 +4,9 @@ using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows; using System.Windows;
using BililiveRecorder.ToolBox; using BililiveRecorder.ToolBox;
using BililiveRecorder.ToolBox.Commands; using BililiveRecorder.ToolBox.Tool.Analyze;
using BililiveRecorder.ToolBox.Tool.Export;
using BililiveRecorder.ToolBox.Tool.Fix;
using BililiveRecorder.WPF.Controls; using BililiveRecorder.WPF.Controls;
using Microsoft.WindowsAPICodePack.Dialogs; using Microsoft.WindowsAPICodePack.Dialogs;
using Serilog; using Serilog;
@ -141,7 +143,7 @@ namespace BililiveRecorder.WPF.Pages
} }
} }
private static void ShowErrorMessageBox<T>(CommandResponse<T> resp) where T : class private static void ShowErrorMessageBox<T>(CommandResponse<T> resp) where T : IResponseData
{ {
var title = LocExtension.GetLocalizedValue<string>("BililiveRecorder.WPF:Strings:Toolbox_AutoFix_Error_Title"); var title = LocExtension.GetLocalizedValue<string>("BililiveRecorder.WPF:Strings:Toolbox_AutoFix_Error_Title");
var type = LocExtension.GetLocalizedValue<string>("BililiveRecorder.WPF:Strings:Toolbox_AutoFix_Error_Type_" + resp.Status.ToString()); var type = LocExtension.GetLocalizedValue<string>("BililiveRecorder.WPF:Strings:Toolbox_AutoFix_Error_Type_" + resp.Status.ToString());
@ -199,7 +201,7 @@ namespace BililiveRecorder.WPF.Pages
} }
else else
{ {
this.analyzeResultDisplayArea.DataContext = resp.Result; this.analyzeResultDisplayArea.DataContext = resp.Data;
} }
} }