示例#1
0
 private void OnTickerDownloadProgressChanged(object sender, TickerDownloadProgressEventArgs e)
 {
     ProgressForm.SetProgress(e.DownloadText, (int)e.DownloadProgress);
     e.Cancel = DownloadCanceled;
 }
 private void OnSimulationProviderDownloadProgressChanged(object sender, TickerDownloadProgressEventArgs e)
 {
     this.beSimulationProgress.EditValue = (int)(((SimulationStrategyDataProvider)sender).DownloadProgress / 100.0 * this.repositoryItemProgressBar1.Maximum);
     Application.DoEvents();
 }