From 4d2590605ebf5b226021a59050bf45114bf0038f Mon Sep 17 00:00:00 2001
From: croire <1432593898@qq.com>
Date: Tue, 26 Oct 2021 23:51:49 +0800
Subject: [PATCH] =?UTF-8?q?PagePublicFavorites=E5=BC=80=E5=8F=91=E5=B7=A5?=
=?UTF-8?q?=E4=BD=9C=E4=B8=AD=EF=BC=8C=E5=AE=8C=E6=88=90=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E8=AE=BE=E8=AE=A1=EF=BC=8C20211026=E6=9A=82=E5=AD=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
DownKyi/DownKyi.csproj | 1 +
DownKyi/Models/FavoritesMedia.cs | 53 +++++++++++++++++-
DownKyi/Resources/checked.png | Bin 0 -> 393 bytes
DownKyi/Services/FavoritesService.cs | 5 +-
DownKyi/Services/IFavoritesService.cs | 3 +-
.../ViewPublicFavoritesViewModel.cs | 24 +++++++-
DownKyi/Views/ViewPublicFavorites.xaml | 31 +++++++++-
7 files changed, 109 insertions(+), 8 deletions(-)
create mode 100644 DownKyi/Resources/checked.png
diff --git a/DownKyi/DownKyi.csproj b/DownKyi/DownKyi.csproj
index 54d9a1d..d2b905c 100644
--- a/DownKyi/DownKyi.csproj
+++ b/DownKyi/DownKyi.csproj
@@ -440,6 +440,7 @@
PreserveNewest
+
PreserveNewest
diff --git a/DownKyi/Models/FavoritesMedia.cs b/DownKyi/Models/FavoritesMedia.cs
index 562544b..99f30b8 100644
--- a/DownKyi/Models/FavoritesMedia.cs
+++ b/DownKyi/Models/FavoritesMedia.cs
@@ -1,14 +1,28 @@
-using Prism.Mvvm;
+using DownKyi.Core.BiliApi.BiliUtils;
+using DownKyi.Utils;
+using DownKyi.ViewModels;
+using Prism.Commands;
+using Prism.Events;
+using Prism.Mvvm;
using System.Windows.Media.Imaging;
namespace DownKyi.Models
{
public class FavoritesMedia : BindableBase
{
+ protected readonly IEventAggregator eventAggregator;
+
+ public FavoritesMedia(IEventAggregator eventAggregator)
+ {
+ this.eventAggregator = eventAggregator;
+ }
+
public long Avid { get; set; }
public string Bvid { get; set; }
public long UpperMid { get; set; }
+ #region 页面属性申明
+
private bool isSelected;
public bool IsSelected
{
@@ -71,5 +85,42 @@ namespace DownKyi.Models
get { return upName; }
set { SetProperty(ref upName, value); }
}
+
+ #endregion
+
+ #region 命令申明
+
+ // 视频标题点击事件
+ private DelegateCommand