private static void OnStepEnd(object sender, PageStepEventArgs args) { #region Validations if (args == null) { throw new ArgumentNullException(nameof(args)); } #endregion if (_options.Verbose == true) { Console.WriteLine(""); } else { if (args.StepCount > 500 && args.StepIndex == args.StepCount) { Console.Write(" PARTY"); } else if ((args.StepIndex % 70) == 0) { Console.WriteLine(" {0:0.00%}", 1.0 * args.StepIndex / args.StepCount); } } }
private static void OnStepStart(object sender, PageStepEventArgs args) { #region Validations if (args == null) { throw new ArgumentNullException(nameof(args)); } #endregion if (_options.Verbose == true) { Console.Write(" > {0}/{1}: {2}", args.StepIndex, args.StepCount, args.Description); } else { Console.Write("."); } }
void export_StepEnd(object sender, PageStepEventArgs e) { int pc = percentageTask(true, e.StepIndex, e.StepCount); this.backgroundWorker.ReportProgress(pc, "minor:end"); }