Exemple #1
0
        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);
                }
            }
        }
Exemple #2
0
        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(".");
            }
        }
Exemple #3
0
        void export_StepEnd(object sender, PageStepEventArgs e)
        {
            int pc = percentageTask(true, e.StepIndex, e.StepCount);

            this.backgroundWorker.ReportProgress(pc, "minor:end");
        }