示例#1
0
 protected virtual void RaiseReady(FileDownloadEvntArgs e)
 {
     if (Ready != null)
     {
         Ready(this, e);
     }
 }
示例#2
0
 protected virtual void RaiseSyncChange(FileDownloadEvntArgs e)
 {
     if (SyncProgressChange != null)
     {
         SyncProgressChange(this, e);
     }
 }
示例#3
0
 protected virtual void RaiseCompleted(FileDownloadEvntArgs e)
 {
     if (Completed != null)
     {
         Completed(this, e);
     }
 }
 void GlobalOfflineSync_SyncProgressChange(object sender,FileDownloadEvntArgs e)
 {
     System.Windows.Deployment.Current.Dispatcher.BeginInvoke(() =>
         {
             title.Text = e.Message;
         });
 }
示例#5
0
 protected virtual void RaiseFailed(FileDownloadEvntArgs e)
 {
     ErrorLogging.Log(this.GetType().ToString(), e.Message, "FileDownloaderError", string.Empty);
     if (Failed != null)
     {
         Failed(this, e);
     }
 }
 void GlobalOfflineSync_Ready(object sender, FileDownloadEvntArgs e)
 {
     OfflineSyncExt sync = (OfflineSyncExt)sender;
     sync.BACKGROUND_REQUEST.TransferProgressChanged += new EventHandler<BackgroundTransferEventArgs>(StatsPage_TransferProgressChanged);
 }
示例#7
0
 void GlobalOfflineSync_Failed(object sender,FileDownloadEvntArgs e)
 {
     GlobalOfflineSync_Completed(sender,e);
 }
示例#8
0
 void GlobalOfflineSync_Ready(object sender,FileDownloadEvntArgs e)
 {
     OfflineSyncExt sync = (OfflineSyncExt)sender;
     if (!GlobalOfflineSync.Cancelled)
     {
         BackgroundTransferService.Add(sync.BACKGROUND_REQUEST);
     }
 }
示例#9
0
 void GlobalOfflineSync_Completed(object sender,FileDownloadEvntArgs e)
 {
     GlobalOfflineSync.Next();
 }
示例#10
0
 protected virtual void RaiseSyncChange(FileDownloadEvntArgs e)
 {
     if (SyncProgressChange != null)
         SyncProgressChange(this,e);
 }
示例#11
0
 protected virtual void RaiseReady(FileDownloadEvntArgs e)
 {
     if (Ready != null)
         Ready(this,e);
 }
示例#12
0
 protected virtual void RaiseFailed(FileDownloadEvntArgs e)
 {
     ErrorLogging.Log(this.GetType().ToString(), e.Message, "FileDownloaderError", string.Empty);
     if (Failed != null)
         Failed(this,e);
 }
示例#13
0
 protected virtual void RaiseCompleted(FileDownloadEvntArgs e)
 {
     if (Completed != null)
         Completed(this,e);
 }