protected virtual void RaiseReady(FileDownloadEvntArgs e) { if (Ready != null) { Ready(this, e); } }
protected virtual void RaiseSyncChange(FileDownloadEvntArgs e) { if (SyncProgressChange != null) { SyncProgressChange(this, e); } }
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; }); }
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); }
void GlobalOfflineSync_Failed(object sender,FileDownloadEvntArgs e) { GlobalOfflineSync_Completed(sender,e); }
void GlobalOfflineSync_Ready(object sender,FileDownloadEvntArgs e) { OfflineSyncExt sync = (OfflineSyncExt)sender; if (!GlobalOfflineSync.Cancelled) { BackgroundTransferService.Add(sync.BACKGROUND_REQUEST); } }
void GlobalOfflineSync_Completed(object sender,FileDownloadEvntArgs e) { GlobalOfflineSync.Next(); }
protected virtual void RaiseSyncChange(FileDownloadEvntArgs e) { if (SyncProgressChange != null) SyncProgressChange(this,e); }
protected virtual void RaiseReady(FileDownloadEvntArgs e) { if (Ready != null) Ready(this,e); }
protected virtual void RaiseFailed(FileDownloadEvntArgs e) { ErrorLogging.Log(this.GetType().ToString(), e.Message, "FileDownloaderError", string.Empty); if (Failed != null) Failed(this,e); }
protected virtual void RaiseCompleted(FileDownloadEvntArgs e) { if (Completed != null) Completed(this,e); }