Пример #1
0
        public static void runStoryBoards()
        {
            long currentTicks = StoryBoardEx.getMyTimer();

            StoryBoardEx.LastRunStoryTicks = currentTicks;
            List <StoryBoardEx> list = new List <StoryBoardEx>();

            foreach (StoryBoardEx sb in StoryBoardEx.StoryBoardDict.Values)
            {
                list.Add(sb);
            }
            for (int i = 0; i < list.Count; i++)
            {
                StoryBoardEx sb = list[i];
                if (null != sb)
                {
                    sb.Run(currentTicks);
                }
            }
        }
Пример #2
0
        //驱动所有的故事板
        public static void runStoryBoards()
        {
            long currentTicks = getMyTimer();

            //Debug.WriteLine("runStoryBoards elapsedTicks=" + (currentTicks - LastRunStoryTicks) + ", stage.frameRate=" + stage.frameRate + ", DateTimeTicks=" + (TimeUtil.NowDateTime().toString("yyyy-MM-dd HH:mm:ss")));
            LastRunStoryTicks = currentTicks;

            List <StoryBoardEx> list = new List <StoryBoardEx>();

            foreach (var sb in StoryBoardDict.Values)
            {
                list.Add(sb);
            }

            for (int i = 0; i < list.Count; i++)
            {
                StoryBoardEx sb = list[i];
                if (null != sb)
                {
                    sb.Run(currentTicks);
                }
            }
        }