Add AppContext object, move platform features to AppContext

This commit is contained in:
John Lewin 2017-12-16 13:56:59 -08:00
parent 5e12f5ce93
commit 7b4020523e
6 changed files with 79 additions and 50 deletions

View file

@ -68,7 +68,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage
var previewButton = buttonFactory.Generate("Preview".Localize().ToUpper());
previewButton.Click += (s, e) =>
{
MatterControlApplication.Instance.OpenCameraPreview();
AppContext.Platform.OpenCameraPreview();
};
this.AddSettingsRow(