feat: 修正命名

This commit is contained in:
姚彪
2023-12-17 18:38:11 +08:00
parent d995e41b8b
commit 17036f3681
44 changed files with 715 additions and 166 deletions

View File

@@ -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,