private async void DownloadButton_OnMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { var model = sender.GetDataContext <Illustration>(); DownloadList.Remove(model); await PixivEx.DownloadIllustInternal(model); MessageQueue.Enqueue(Externally.DownloadComplete(model)); }
private async void DownloadButton_OnClick(object sender, RoutedEventArgs e) { var model = currentModel; DownloadList.Remove(model); await PixivEx.DownloadIllustInternal(model); messageQueue.Enqueue(Externally.DownloadComplete(model)); }
private async void DownloadNowMenuItem_OnClick(object sender, RoutedEventArgs e) { var illust = sender.GetDataContext <Illustration>(); DownloadList.Remove(illust); await PixivEx.DownloadIllustInternal(illust); MessageQueue.Enqueue(Externally.DownloadComplete(illust)); }
private async void DownloadSingleFromDownloadListButton_OnClick(object sender, RoutedEventArgs e) { var illust = sender.GetDataContext <Illustration>(); DownloadList.Remove(illust); await PixivEx.DownloadIllustInternal(illust); Notice(Externally.DownloadComplete(illust)); }