/* IQuickStartData */ private static void InitializeHomePageData(QuickStartData data, XElement element) { var homepage = element.Element("HomepageInfo"); if (homepage != null) { data.HomePage = ModelFactory.CreateHomePageInfo(homepage); } }
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; }