public void Cancel(IDownloadFileManager manager, IUploadManager uploadManager) { var photoSize = Full as TLPhotoSize; if (photoSize == null) { return; } var location = photoSize.Location as TLFileLocation; if (location == null) { return; } if (manager != null) { manager.Cancel(location); } if (uploadManager != null) { uploadManager.Cancel(UploadId ?? 0); } DownloadingProgress = 0; UploadingProgress = 0; }
public void Cancel(IDownloadManager manager, IUploadManager uploadManager) { if (manager != null) { manager.Cancel(this); } if (uploadManager != null) { uploadManager.Cancel(UploadId ?? 0); } UploadingProgress = 0; DownloadingProgress = 0; }