Ejemplo n.º 1
0
        protected void GenerateMultiple(int numberToGenerate, Action createItemCallback)
        {
            ProgressReporter reporter = new ProgressReporter(numberToGenerate);
            LogAction(string.Format("Generating {0} {1}...", numberToGenerate, GeneratedItemType));

            reporter.ReportProgress(createItemCallback, percent => LogAction(percent + "% complete"));
            LogAction(string.Format("{0} {1} generated successfully", numberToGenerate, GeneratedItemType));
        }
Ejemplo n.º 2
0
        protected void GenerateMultiple(int numberToGenerate, Action createItemCallback)
        {
            ProgressReporter reporter = new ProgressReporter(numberToGenerate);

            LogAction(string.Format("Generating {0} {1}...", numberToGenerate, GeneratedItemType));

            reporter.ReportProgress(createItemCallback, percent => LogAction(percent + "% complete"));
            LogAction(string.Format("{0} {1} generated successfully", numberToGenerate, GeneratedItemType));
        }