コード例 #1
0
 private void RaiseCompleted(APICompletedEventArgs e)
 {
     if (Completed != null)
     {
         Completed(this, e);
     }
 }
コード例 #2
0
 protected virtual void RaiseFailed(APICompletedEventArgs e)
 {
     if (Failed != null && !Disposed)
     {
         Failed(this, e);
     }
 }
コード例 #3
0
 void url_fetcher_Failed(object sender, APICompletedEventArgs e)
 {
     string[] title = tag.Split('|');
     // RaiseSyncChange(new FileDownloadEvntArgs("Request Failed... "+title[1]));
     Message.SetMessage("Request Failed... " + title[1]);
     RaiseFailed(new FileDownloadEvntArgs(e.Response));
 }
コード例 #4
0
 void primary_fetch_Failed(object sender, APICompletedEventArgs e)
 {
     if (!Disposed)
     {
         this.secondary_fetch.GetStreamURL(this.youtube_source);
     }
 }
コード例 #5
0
 void auth_NewTokenReceived(object sender, APICompletedEventArgs e)
 {
     System.Windows.Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         ToggleProgressBar("Done");
         NavigationService.Navigate(new Uri("/Pages/Playlist.xaml", UriKind.Relative));
     });
 }
コード例 #6
0
 private void RaiseFailed(APICompletedEventArgs e)
 {
     ErrorLogging.Log(this.GetType().ToString(), e.Response, "ServiceProviderError", HttpUtility.UrlEncode(this.Youtube_Source_URL));
     if (Failed != null)
     {
         Failed(this, e);
     }
 }
コード例 #7
0
 void url_fetcher_Completed(object sender, APICompletedEventArgs e)
 {
     BACKGROUND_REQUEST = base.GetBackTXRequest(e.Response, tag);
     BACKGROUND_REQUEST.TransferStatusChanged += new EventHandler <BackgroundTransferEventArgs>(current_request_TransferStatusChanged);
     RaiseReady(new FileDownloadEvntArgs(e.Response));
     string[] title = BACKGROUND_REQUEST.Tag.Split('|');
     if (SOURCES.Count > 0)
     {
         //RaiseSyncChange(new FileDownloadEvntArgs("Downloading... "+title[1]));
         Message.SetMessage("Downloading... " + title[1]);
     }
     else
     {
         //RaiseSyncChange(new FileDownloadEvntArgs("Completed"));
         Message.SetMessage("Completed");
     }
 }
コード例 #8
0
 void tertiary_fetch_Failed(object sender, APICompletedEventArgs e)
 {
     RaiseFailed(e);
 }
コード例 #9
0
 void tertiary_fetch_Failed(object sender, APICompletedEventArgs e)
 {
     RaiseFailed(e);
 }
コード例 #10
0
 void secondary_fetch_Failed(object sender, APICompletedEventArgs e)
 {
     if(!Disposed)
         this.tertiary_fetch.GetStreamURL(this.youtube_source);
 }
コード例 #11
0
 void secondary_fetch_Completed(object sender, APICompletedEventArgs e)
 {
     RaiseCompleted(e);
 }
コード例 #12
0
 private void RaiseFailed(APICompletedEventArgs e)
 {
     ErrorLogging.Log(this.GetType().ToString(), e.Response, "ServiceProviderError", HttpUtility.UrlEncode(this.Youtube_Source_URL));
     if (Failed != null)
         Failed(this, e);
 }
コード例 #13
0
 protected virtual void RaiseNewToken(APICompletedEventArgs e)
 {
     if (NewTokenReceived != null)
         NewTokenReceived(this, e);
 }
コード例 #14
0
 void url_fetcher_Failed(object sender, APICompletedEventArgs e)
 {
     string[] title = tag.Split('|');
        // RaiseSyncChange(new FileDownloadEvntArgs("Request Failed... "+title[1]));
     Message.SetMessage("Request Failed... "+title[1]);
     RaiseFailed(new FileDownloadEvntArgs(e.Response));
 }
コード例 #15
0
 void url_fetcher_Completed(object sender, APICompletedEventArgs e)
 {
     BACKGROUND_REQUEST = base.GetBackTXRequest(e.Response,tag);
     BACKGROUND_REQUEST.TransferStatusChanged += new EventHandler<BackgroundTransferEventArgs>(current_request_TransferStatusChanged);
     RaiseReady(new FileDownloadEvntArgs(e.Response));
     string[] title = BACKGROUND_REQUEST.Tag.Split('|');
     if(SOURCES.Count > 0)
         //RaiseSyncChange(new FileDownloadEvntArgs("Downloading... "+title[1]));
         Message.SetMessage("Downloading... "+title[1]);
     else
         //RaiseSyncChange(new FileDownloadEvntArgs("Completed"));
         Message.SetMessage("Completed");
 }
コード例 #16
0
 protected virtual void RaiseFailed(APICompletedEventArgs e)
 {
     if (Failed != null && !Disposed)
         Failed(this, e);
 }
コード例 #17
0
 void primary_fetch_Completed(object sender, APICompletedEventArgs e)
 {
     RaiseCompleted(e);
 }
コード例 #18
0
 private void RaiseCompleted(APICompletedEventArgs e)
 {
     if(Completed != null)
         Completed(this,e);
 }