protected static void ShowAltaxoClassRefHelpFromWeb(ExternalHelpItem helpItem) { string url = "https://altaxo.github.io/AltaxoClassReference/html/" + helpItem.DocumentationReferenceIdentifier + ".htm"; // Invoke standard browser of the system System.Diagnostics.Process.Start(url); }
protected static void ShowMicrosoftClassReferenceHelp(ExternalHelpItem helpItem) { string url = "https://docs.microsoft.com/en-us/dotnet/api/"; for (int i = 0; i < helpItem.TypeNameParts.Count; ++i) { url += helpItem.TypeNameParts[i]; if (i < helpItem.TypeNameParts.Count - 1) { url += "."; } } if (helpItem.NumberOfGenericArguments != 0) { url += "-" + helpItem.NumberOfGenericArguments.ToString(System.Globalization.CultureInfo.InvariantCulture); } if (!(helpItem.MemberName is null)) { url += "."; if (helpItem.MemberName == ".ctor") { url += "-ctor"; } else { url += helpItem.MemberName; } } // Invoke standard browser of the system System.Diagnostics.Process.Start(url); }
private static void EhExternalHelpRequired(ExternalHelpItem helpItem) { if (null == helpItem.GetOneOfTheseAssembliesOrNull(Altaxo.Settings.Scripting.ReferencedAssemblies.AssembliesIncludedInClassReference)) { ShowMicrosoftClassReferenceHelp(helpItem); } else { string chmFileName = FileUtility.ApplicationRootPath + Path.DirectorySeparatorChar + "doc" + Path.DirectorySeparatorChar + "help" + Path.DirectorySeparatorChar + StringParser.Parse("${AppName}ClassRef.chm"); if (System.IO.File.Exists(chmFileName)) { string topic = "html/" + helpItem.DocumentationReferenceIdentifier + ".htm"; ShowAltaxoClassRefHelpFromChmFile(chmFileName, topic); } else { ShowAltaxoClassRefHelpFromWeb(helpItem); } } }