|
|
@ -1,4 +1,7 @@
|
|
|
|
using Prism.Commands;
|
|
|
|
using DownKyi.Core.BiliApi.BiliUtils;
|
|
|
|
|
|
|
|
using DownKyi.Utils;
|
|
|
|
|
|
|
|
using Prism.Commands;
|
|
|
|
|
|
|
|
using Prism.Events;
|
|
|
|
using Prism.Mvvm;
|
|
|
|
using Prism.Mvvm;
|
|
|
|
using System.Windows.Media.Imaging;
|
|
|
|
using System.Windows.Media.Imaging;
|
|
|
|
|
|
|
|
|
|
|
@ -6,6 +9,13 @@ namespace DownKyi.ViewModels.PageViewModels
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public class PublicationMedia : BindableBase
|
|
|
|
public class PublicationMedia : BindableBase
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
protected readonly IEventAggregator eventAggregator;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public PublicationMedia(IEventAggregator eventAggregator)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
this.eventAggregator = eventAggregator;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public long Avid { get; set; }
|
|
|
|
public long Avid { get; set; }
|
|
|
|
public string Bvid { get; set; }
|
|
|
|
public string Bvid { get; set; }
|
|
|
|
|
|
|
|
|
|
|
@ -63,8 +73,9 @@ namespace DownKyi.ViewModels.PageViewModels
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!(parameter is string tag)) { return; }
|
|
|
|
if (!(parameter is string tag)) { return; }
|
|
|
|
|
|
|
|
|
|
|
|
string url = "https://www.bilibili.com/video/" + tag;
|
|
|
|
NavigateToView.NavigationView(eventAggregator, ViewVideoDetailViewModel.Tag, tag, $"{ParseEntrance.VideoUrl}{Bvid}");
|
|
|
|
System.Diagnostics.Process.Start(url);
|
|
|
|
//string url = "https://www.bilibili.com/video/" + tag;
|
|
|
|
|
|
|
|
//System.Diagnostics.Process.Start(url);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|