Example #1
0
            public async Task DownloadBeatmapset()
            {
                if (BeatmapsetDownloadListItemViewModel == null)
                {
                    return;
                }
                BeatmapsetDownloadListItemViewModel item = BeatmapsetDownloadListItemViewModel;

                string fileName = $"{item.BeatmapsetId} {item.Artist}-{item.Title}.osz";
                string path     = $"{Environment.CurrentDirectory}/download/{fileName}";

                this.DownloadFileAsync(new Uri($"https://osu.sayobot.cn/osu.php?s={item.BeatmapsetId}"), path);
            }
Example #2
0
 public Downloader(BeatmapsetDownloadListItemViewModel item) : base()
 {
     BeatmapsetDownloadListItemViewModel = item;
 }