Пример #1
0
        public virtual bool PreloaderNextStep()
        {
            var timeElapsed  = 0L;
            var batchedSteps = 0;

            while (timeElapsed < 15L && loadService.completed == false)
            {
                var watch = Stopwatch.StartNew();

                loadService.NextParser();

                watch.Stop();

                timeElapsed = watch.ElapsedMilliseconds;
                batchedSteps++;
            }

            if (loadService.completed && !displayProgress)
            {
                PreloaderComplete();
                return(true);
            }

            return(false);
        }