Beispiel #1
0
        private async Task ReportProgress()
        {
            var args = new InitializationProgressed(Count == 0 ? 0 : (Completed) * 100 / (Count));

            if (args.Percentage >= 100)
            {
                args.Title      = resources.Ready;
                args.Percentage = 100;
            }
            else
            {
                args.Title = resources.Title(Completed, Count);
            }

            await mediator.Publish(args);
        }
Beispiel #2
0
        private async Task ReportProgress()
        {
            var percentage = Count == 0 ? 0 : (Completed) * 100 / (Count);

            var args = new InitializationProgressed(percentage);

            if (percentage >= 100)
            {
                args.Title = localizer["Ready"];
            }
            else
            {
                args.Title = localizer["Title", Completed, Count];
            }

            await mediator.Publish(args);
        }