|
|
@ -51,6 +51,13 @@ namespace DownKyi.ViewModels
|
|
|
|
set => SetProperty(ref arrowBack, value);
|
|
|
|
set => SetProperty(ref arrowBack, value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private VectorImage downloadManage;
|
|
|
|
|
|
|
|
public VectorImage DownloadManage
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
get => downloadManage;
|
|
|
|
|
|
|
|
set => SetProperty(ref downloadManage, value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private Visibility contentVisibility;
|
|
|
|
private Visibility contentVisibility;
|
|
|
|
public Visibility ContentVisibility
|
|
|
|
public Visibility ContentVisibility
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -110,6 +117,12 @@ namespace DownKyi.ViewModels
|
|
|
|
ArrowBack = NavigationIcon.Instance().ArrowBack;
|
|
|
|
ArrowBack = NavigationIcon.Instance().ArrowBack;
|
|
|
|
ArrowBack.Fill = DictionaryResource.GetColor("ColorTextDark");
|
|
|
|
ArrowBack.Fill = DictionaryResource.GetColor("ColorTextDark");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 下载管理按钮
|
|
|
|
|
|
|
|
DownloadManage = ButtonIcon.Instance().DownloadManage;
|
|
|
|
|
|
|
|
DownloadManage.Height = 24;
|
|
|
|
|
|
|
|
DownloadManage.Width = 24;
|
|
|
|
|
|
|
|
DownloadManage.Fill = DictionaryResource.GetColor("ColorPrimary");
|
|
|
|
|
|
|
|
|
|
|
|
Medias = new ObservableCollection<HistoryMedia>();
|
|
|
|
Medias = new ObservableCollection<HistoryMedia>();
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
@ -143,6 +156,24 @@ namespace DownKyi.ViewModels
|
|
|
|
eventAggregator.GetEvent<NavigationEvent>().Publish(parameter);
|
|
|
|
eventAggregator.GetEvent<NavigationEvent>().Publish(parameter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 前往下载管理页面
|
|
|
|
|
|
|
|
private DelegateCommand downloadManagerCommand;
|
|
|
|
|
|
|
|
public DelegateCommand DownloadManagerCommand => downloadManagerCommand ?? (downloadManagerCommand = new DelegateCommand(ExecuteDownloadManagerCommand));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 前往下载管理页面
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
private void ExecuteDownloadManagerCommand()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
NavigationParam parameter = new NavigationParam
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ViewName = ViewDownloadManagerViewModel.Tag,
|
|
|
|
|
|
|
|
ParentViewName = Tag,
|
|
|
|
|
|
|
|
Parameter = null
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
eventAggregator.GetEvent<NavigationEvent>().Publish(parameter);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 全选按钮点击事件
|
|
|
|
// 全选按钮点击事件
|
|
|
|
private DelegateCommand<object> selectAllCommand;
|
|
|
|
private DelegateCommand<object> selectAllCommand;
|
|
|
|
public DelegateCommand<object> SelectAllCommand => selectAllCommand ?? (selectAllCommand = new DelegateCommand<object>(ExecuteSelectAllCommand));
|
|
|
|
public DelegateCommand<object> SelectAllCommand => selectAllCommand ?? (selectAllCommand = new DelegateCommand<object>(ExecuteSelectAllCommand));
|
|
|
@ -459,6 +490,11 @@ namespace DownKyi.ViewModels
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ArrowBack.Fill = DictionaryResource.GetColor("ColorTextDark");
|
|
|
|
ArrowBack.Fill = DictionaryResource.GetColor("ColorTextDark");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DownloadManage = ButtonIcon.Instance().DownloadManage;
|
|
|
|
|
|
|
|
DownloadManage.Height = 24;
|
|
|
|
|
|
|
|
DownloadManage.Width = 24;
|
|
|
|
|
|
|
|
DownloadManage.Fill = DictionaryResource.GetColor("ColorPrimary");
|
|
|
|
|
|
|
|
|
|
|
|
ContentVisibility = Visibility.Collapsed;
|
|
|
|
ContentVisibility = Visibility.Collapsed;
|
|
|
|
LoadingVisibility = Visibility.Collapsed;
|
|
|
|
LoadingVisibility = Visibility.Collapsed;
|
|
|
|
NoDataVisibility = Visibility.Collapsed;
|
|
|
|
NoDataVisibility = Visibility.Collapsed;
|
|
|
@ -477,6 +513,11 @@ namespace DownKyi.ViewModels
|
|
|
|
|
|
|
|
|
|
|
|
ArrowBack.Fill = DictionaryResource.GetColor("ColorTextDark");
|
|
|
|
ArrowBack.Fill = DictionaryResource.GetColor("ColorTextDark");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DownloadManage = ButtonIcon.Instance().DownloadManage;
|
|
|
|
|
|
|
|
DownloadManage.Height = 24;
|
|
|
|
|
|
|
|
DownloadManage.Width = 24;
|
|
|
|
|
|
|
|
DownloadManage.Fill = DictionaryResource.GetColor("ColorPrimary");
|
|
|
|
|
|
|
|
|
|
|
|
// 根据传入参数不同执行不同任务
|
|
|
|
// 根据传入参数不同执行不同任务
|
|
|
|
long mid = navigationContext.Parameters.GetValue<long>("Parameter");
|
|
|
|
long mid = navigationContext.Parameters.GetValue<long>("Parameter");
|
|
|
|
if (mid == 0)
|
|
|
|
if (mid == 0)
|
|
|
|