Beispiel #1
0
        /// <summary>
        ///     The on batch progress.
        /// </summary>
        /// <param name = "e">The events.</param>
        protected void OnBatchProgress(BatchProgressEventArgs e)
        {
            EventHandler <BatchProgressEventArgs> progress = BatchProgress;

            if (progress != null)
            {
                progress(this, e);
            }
        }
 /// <summary>
 /// 	The on batch progress.
 /// </summary>
 /// <param name = "e">The events.</param>
 protected void OnBatchProgress(BatchProgressEventArgs e)
 {
     EventHandler<BatchProgressEventArgs> progress = BatchProgress;
     if (progress != null)
     {
         progress(this, e);
     }
 }
Beispiel #3
0
 /// <summary>The runner batch progress.</summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The e.</param>
 private void RunnerBatchProgress(object sender, BatchProgressEventArgs e)
 {
     // push the progress % through to the background worker
     decimal i = Math.Max(1, e.Index);
     decimal count = Math.Max(1, e.Count);
     queryBackgroundWorker.ReportProgress(Convert.ToInt32(i/count*100m));
 }