Move UI behavior into application layer

This commit is contained in:
John Lewin 2018-11-24 16:15:54 -08:00
parent ac7d56ecdb
commit da3bccb601
3 changed files with 28 additions and 29 deletions

View file

@ -42,6 +42,7 @@ using MatterHackers.MatterControl.PrinterCommunication;
using MatterHackers.MatterControl.PrintHistory;
using MatterHackers.MatterControl.SetupWizard;
using MatterHackers.MatterControl.SlicerConfiguration;
using Newtonsoft.Json;
namespace MatterHackers.MatterControl.PartPreviewWindow
{
@ -306,7 +307,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
Title = "Export All Settings".Localize(),
Action = () =>
{
printer.Settings.Helpers.ExportAsMatterControlConfig();
ApplicationController.Instance.ExportAsMatterControlConfig(printer);
}
},
new ActionSeparator(),