ordering primitives
refactoring
This commit is contained in:
parent
4da3ace092
commit
06baf2a1b1
17 changed files with 66 additions and 69 deletions
|
|
@ -6,7 +6,6 @@ using System;
|
|||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using Markdig.Agg;
|
||||
using Markdig.Syntax.Inlines;
|
||||
|
|
@ -39,7 +38,7 @@ namespace Markdig.Renderers.Agg.Inlines
|
|||
{
|
||||
if (linkInline.Url.StartsWith("http", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
ApplicationController.Instance.LaunchBrowser(linkInline.Url);
|
||||
ApplicationController.LaunchBrowser(linkInline.Url);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -112,7 +111,7 @@ namespace Markdig.Renderers.Agg.Inlines
|
|||
{
|
||||
if (LinkUrl.StartsWith("http", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
ApplicationController.Instance.LaunchBrowser(LinkUrl);
|
||||
ApplicationController.LaunchBrowser(LinkUrl);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -152,8 +152,8 @@ namespace Markdig.Agg
|
|||
var helpArticleHeader = new HelpArticleHeader(sourceArticle, theme, boldFont: true, pointSize: theme.FontSize14, editToolTipText: "Edit Page".Localize());
|
||||
helpArticleHeader.EditClicked += (s, e) =>
|
||||
{
|
||||
ApplicationController.Instance.LaunchBrowser($"https://github.com/MatterHackers/MatterControl-Help/blob/master/input/{sourceArticle.Path}");
|
||||
// ApplicationController.Instance.LaunchBrowser($"https://github.com/MatterHackers/MatterControl-Docs/tree/master/docs/Help/{sourceArticle.Path}");
|
||||
ApplicationController.LaunchBrowser($"https://github.com/MatterHackers/MatterControl-Help/blob/master/input/{sourceArticle.Path}");
|
||||
// ApplicationController.LaunchBrowser($"https://github.com/MatterHackers/MatterControl-Docs/tree/master/docs/Help/{sourceArticle.Path}");
|
||||
};
|
||||
contentPanel.AddChild(helpArticleHeader);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue