예제 #1
0
파일: LoadEXaml.cs 프로젝트: wonrst/TizenFX
        internal static GlobalDataList GatherDataList(string xaml)
        {
            var globalDataList = new GlobalDataList();

            Action currentAction = new RootAction(globalDataList);
            var    rootAction    = currentAction;

            int index = 0;

            for (; index < xaml.Length; index++)
            {
                var c = xaml[index];

                if (currentAction == rootAction && '/' == c)
                {
                    break;
                }
                else
                {
                    currentAction = currentAction.DealChar(c);
                }
            }

            for (index++; index < xaml.Length; index++)
            {
                globalDataList.LongStrings += xaml[index];
            }

            foreach (var op in globalDataList.PreLoadOperations)
            {
                op.Do();
            }

            return(globalDataList);
        }
예제 #2
0
        internal static GlobalDataList GatherDataList(string xaml)
        {
            var globalDataList = new GlobalDataList();

            Action currentAction = new RootAction(globalDataList);

            foreach (char c in xaml)
            {
                currentAction = currentAction.DealChar(c);
            }

            foreach (var op in globalDataList.PreLoadOperations)
            {
                op.Do();
            }

            return(globalDataList);
        }