Move LaunchBrowser from widget to model

This commit is contained in:
John Lewin 2017-12-16 08:55:20 -08:00
parent 15192db8b9
commit d074eabdb5
7 changed files with 18 additions and 19 deletions

View file

@ -139,7 +139,7 @@ namespace MatterHackers.MatterControl
linkButton.OriginRelativeParent = new VectorMath.Vector2(linkButton.OriginRelativeParent.X, linkButton.OriginRelativeParent.Y + descentInPixels);
linkButton.Click += (sender, mouseEvent) =>
{
MatterControlApplication.Instance.LaunchBrowser(elementState.Href);
ApplicationController.Instance.LaunchBrowser(elementState.Href);
};
elementsUnderConstruction.Peek().AddChild(linkButton);
}
@ -196,7 +196,7 @@ namespace MatterHackers.MatterControl
linkButton.Cursor = Cursors.Hand;
linkButton.Click += (sender, mouseEvent) =>
{
MatterControlApplication.Instance.LaunchBrowser(elementState.Href);
ApplicationController.Instance.LaunchBrowser(elementState.Href);
};
elementsUnderConstruction.Peek().AddChild(linkButton);
}