Exemplo n.º 1
0
 /// <summary>
 /// Raises episode processed event with result
 /// </summary>
 /// <param name="name">Episode name</param>
 /// <param name="url">Episode address</param>
 /// <param name="path">Episode local path</param>
 /// <param name="result">Success result of episode</param>
 protected virtual void OnEpisodeProcessed(string name, string url, string path, EpisodeDetailEventArgs.EpisodeResult result)
 {
     EpisodeProcessed?.Invoke(this, new EpisodeDetailEventArgs(name, url, path, result));
 }
Exemplo n.º 2
0
 private void Episode_EpisodeDownloading(object sender, EpisodeDetailEventArgs eventArgs)
 {
     EpisodeProcessed?.Invoke(sender, new EpisodeDetailEventArgs(eventArgs.Name, eventArgs.Url, eventArgs.DownloadPath, EpisodeDetailEventArgs.EpisodeResult.Downloading));
 }