public static XElement GetTagInnerXml(XElement docInfo, string tag, Navigation nav, bool addCss) { _nav = nav; if (docInfo == null) return null; ReplaceSee(docInfo); var s = docInfo.Elements(tag).Select(e => GetInnerXmlPriv(e, addCss)).ToArray(); if (s.Length == 0) return null; return new XElement("span", s); }
private void Browse_Click(object sender, RoutedEventArgs e) { var dlg = new VistaOpenFileDialog { Filter = "Assembly Files (*.dll)|*.dll", Multiselect = true, }; if (dlg.ShowDialog(this) != true) return; Toc.Items.Clear(); var navigation = new Navigation { UrlPrefix = "http://stocksharp.com/doc/ref/", EmptyImage = "http://stocksharp.com/images/blank.gif" }; GenerateHtml.CssUrl = @"file:///C:/VisualStudio/Web/trunk/Site/css/style.css"; GenerateHtml.Navigation = navigation; //ToDo: переделать GenerateHtml.IsHtmlAsDiv = false; GenerateHtml.IsRussian = true; var asmFiles = dlg.FileNames; var docFiles = asmFiles .Select(f => Path.Combine(Path.GetDirectoryName(f), Path.GetFileNameWithoutExtension(f) + ".xml")) .Where(File.Exists) .ToArray(); var slnDom = SolutionDom.Build("StockSharp. Описание типов", asmFiles, docFiles, Path.GetFullPath(@"..\..\..\..\..\StockSharp\trunk\Documentation\DocSandCastle\Comments\project.xml"), null, new FindOptions { InternalClasses = false, UndocumentedClasses = true, PrivateMembers = false, UndocumentedMembers = true }); _root = BuildPages.BuildSolution(slnDom); BuildTree(_root, Toc.Items); }
public static XElement GetInnerXml(XElement elem, Navigation nav) { _nav = nav; return GetInnerXmlPriv(elem, false); }