Remove ActiveSliceSettings.Instance

- Issue MatterHackers/MCCentral#4243
This commit is contained in:
John Lewin 2018-10-05 09:24:57 -07:00
parent d8a5100639
commit 6dbae7668b
32 changed files with 153 additions and 135 deletions

View file

@ -49,7 +49,7 @@ namespace MatterControl.Tests.MatterControl
MatterControlUtilities.OverrideAppDataLocation(TestContext.CurrentContext.ResolveProjectPath(4));
var printerSettings = ActiveSliceSettings.Instance;
var printerSettings = new PrinterSettings();
printerSettings.SetValue(SettingsKey.z_probe_z_offset, "0");
// a 2 x 2 mesh that goes form 0 on the left to 10 on the right
{

View file

@ -236,7 +236,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
testRunner.AddAndSelectPrinter(make, model);
// Force the configured printer to use the emulator driver
ActiveSliceSettings.Instance.SetValue("driver_type", "Emulator");
ApplicationController.Instance.ActivePrinter.Settings.SetValue("driver_type", "Emulator");
// edit the com port
testRunner.SwitchToPrinterSettings();