mirror of
https://github.com/yaobiao131/downkyicore.git
synced 2025-08-10 00:52:31 +00:00
feat: 修正命名
This commit is contained in:
@@ -105,7 +105,7 @@ public class ViewMyToViewVideoViewModel : ViewModelBase
|
||||
public ViewMyToViewVideoViewModel(IEventAggregator eventAggregator, IDialogService dialogService) : base(
|
||||
eventAggregator)
|
||||
{
|
||||
this.dialogService = dialogService;
|
||||
this.DialogService = dialogService;
|
||||
|
||||
#region 属性初始化
|
||||
|
||||
@@ -154,7 +154,7 @@ public class ViewMyToViewVideoViewModel : ViewModelBase
|
||||
ParentViewName = null,
|
||||
Parameter = null
|
||||
};
|
||||
eventAggregator.GetEvent<NavigationEvent>().Publish(parameter);
|
||||
EventAggregator.GetEvent<NavigationEvent>().Publish(parameter);
|
||||
}
|
||||
|
||||
// 前往下载管理页面
|
||||
@@ -175,7 +175,7 @@ public class ViewMyToViewVideoViewModel : ViewModelBase
|
||||
ParentViewName = Tag,
|
||||
Parameter = null
|
||||
};
|
||||
eventAggregator.GetEvent<NavigationEvent>().Publish(parameter);
|
||||
EventAggregator.GetEvent<NavigationEvent>().Publish(parameter);
|
||||
}
|
||||
|
||||
// 全选按钮点击事件
|
||||
@@ -275,7 +275,7 @@ public class ViewMyToViewVideoViewModel : ViewModelBase
|
||||
AddToDownloadService addToDownloadService = new AddToDownloadService(PlayStreamType.VIDEO);
|
||||
|
||||
// 选择文件夹
|
||||
string directory = await addToDownloadService.SetDirectory(dialogService);
|
||||
string directory = await addToDownloadService.SetDirectory(DialogService);
|
||||
|
||||
// 视频计数
|
||||
int i = 0;
|
||||
@@ -303,7 +303,7 @@ public class ViewMyToViewVideoViewModel : ViewModelBase
|
||||
addToDownloadService.GetVideo();
|
||||
addToDownloadService.ParseVideo(videoInfoService);
|
||||
// 下载
|
||||
i += addToDownloadService.AddToDownload(eventAggregator, directory);
|
||||
i += addToDownloadService.AddToDownload(EventAggregator, directory);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -315,11 +315,11 @@ public class ViewMyToViewVideoViewModel : ViewModelBase
|
||||
// 通知用户添加到下载列表的结果
|
||||
if (i <= 0)
|
||||
{
|
||||
eventAggregator.GetEvent<MessageEvent>().Publish(DictionaryResource.GetString("TipAddDownloadingZero"));
|
||||
EventAggregator.GetEvent<MessageEvent>().Publish(DictionaryResource.GetString("TipAddDownloadingZero"));
|
||||
}
|
||||
else
|
||||
{
|
||||
eventAggregator.GetEvent<MessageEvent>()
|
||||
EventAggregator.GetEvent<MessageEvent>()
|
||||
.Publish(
|
||||
$"{DictionaryResource.GetString("TipAddDownloadingFinished1")}{i}{DictionaryResource.GetString("TipAddDownloadingFinished2")}");
|
||||
}
|
||||
@@ -382,7 +382,7 @@ public class ViewMyToViewVideoViewModel : ViewModelBase
|
||||
|
||||
App.PropertyChangeAsync(() =>
|
||||
{
|
||||
ToViewMedia media = new ToViewMedia(eventAggregator)
|
||||
ToViewMedia media = new ToViewMedia(EventAggregator)
|
||||
{
|
||||
Aid = toView.Aid,
|
||||
Bvid = toView.Bvid,
|
||||
|
||||
Reference in New Issue
Block a user