Exemplo n.º 1
0
        private void InitializeRouteThreads()
        {
            int n = Ctx.Project.BlockRoutes.Count;

            if (n == 0)
            {
                return;
            }

            var blockRoutes = Ctx.Project.BlockRoutes;

            if (blockRoutes == null || blockRoutes.Count == 0)
            {
                return;
            }

            foreach (var route in blockRoutes)
            {
                if (route == null)
                {
                    continue;
                }

                var childThread = AutoplayRouteThread.Start(Ctx, this, route);

                _blockRouteThreads.Add(childThread);
            }
        }