private void AltProceedButton_Click(object sender, EventArgs e) { string link = ChannelLinkBox.Text; _youHandler = new YouHandler(); _youHandler.SetLogger(this); _youHandler.SetProgressReporter(this); WriteLog("Loading channel contents..."); try { _youHandler.LoadChannelContentByLink(link); var list = _youHandler.GetVideos(); if (list == null) { throw new Exception("Unknown exception"); } foreach (Video video in list) { VideoListBox.Items.Add(new VideoListItem(video)); } } catch (Exception ex) { WriteLog(ex.Message); } }
private void DownloadVideoButton_ClickAsync(object sender, EventArgs e) { _youHandler = new YouHandler(); _youHandler.SetLogger(this); _youHandler.SetProgressReporter(this); SendDownloadRequestAsync(DirectLinkBox.Text); }