示例#1
0
        /* IQuickStartData */

        private static void InitializeHomePageData(QuickStartData data, XElement element)
        {
            var homepage = element.Element("HomepageInfo");

            if (homepage != null)
            {
                data.HomePage = ModelFactory.CreateHomePageInfo(homepage);
            }
        }
示例#2
0
        public static void InitializeQuickStartData(XElement element)
        {
            QuickStartData data = new QuickStartData();

            InitializeHomePageData(data, element);

            var controlsList = CreateControlInfos(element);

            data.AllControls = controlsList.OrderBy(c => c.Name);

            var examplesList = data.AllControls.SelectMany(c => c.Examples);

            data.Examples = examplesList;

            data.HighlightedControls = LoadHighlightedControls(controlsList, element);
            data.HighlightedExamples = LoadHighlightedExamples(examplesList, element);
            data.HighlightedApps     = LoadHighlightedApps(element);

            QuickStartDataInstance = data;
        }