public DownloadingItem(IDialogService dialogService) : base(dialogService) { // 暂停继续按钮 StartOrPause = ButtonIcon.Instance().Pause; StartOrPause.Fill = DictionaryResource.GetColor("ColorPrimary"); // 删除按钮 Delete = ButtonIcon.Instance().Delete; Delete.Fill = DictionaryResource.GetColor("ColorPrimary"); }
/// <summary> /// 下载失败后的处理 /// </summary> /// <param name="downloading"></param> private void DownloadFailed(DownloadingItem downloading) { downloading.DownloadStatusTitle = DictionaryResource.GetString("DownloadFailed"); downloading.DownloadContent = string.Empty; downloading.DownloadingFileSize = string.Empty; downloading.SpeedDisplay = string.Empty; downloading.Downloading.DownloadStatus = DownloadStatus.DOWNLOAD_FAILED; downloading.StartOrPause = ButtonIcon.Instance().Retry; downloading.StartOrPause.Fill = DictionaryResource.GetColor("ColorPrimary"); }
public DownloadedItem(IDialogService dialogService) : base(dialogService) { // 打开文件夹按钮 OpenFolder = ButtonIcon.Instance().Folder; OpenFolder.Fill = DictionaryResource.GetColor("ColorPrimary"); // 打开视频按钮 OpenVideo = ButtonIcon.Instance().Start; OpenVideo.Fill = DictionaryResource.GetColor("ColorPrimary"); // 删除按钮 RemoveVideo = ButtonIcon.Instance().Trash; RemoveVideo.Fill = DictionaryResource.GetColor("ColorWarning"); }