Rename ApplicationControl static printer property to ActivePrinter

This commit is contained in:
John Lewin 2017-09-17 14:01:58 -07:00
parent 2ac9b5932e
commit ed66d862a4
11 changed files with 20 additions and 20 deletions

View file

@ -499,7 +499,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
fanChangedCount++;
};
var layerTwoZHeight = ApplicationController.Instance.Printer.Settings.GetValue<double>(SettingsKey.layer_height) * 2;
var layerTwoZHeight = ApplicationController.Instance.ActivePrinter.Settings.GetValue<double>(SettingsKey.layer_height) * 2;
// Wait for layer 2
emulator.ZPositionChanged += (s, e) =>

View file

@ -139,7 +139,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
// close the pause dialog pop-up
testRunner.ClickByName("Yes Button");
var printer = ApplicationController.Instance.Printer;
var printer = ApplicationController.Instance.ActivePrinter;
testRunner.Delay(() => printer.Bed.ActiveLayerIndex + 1 == indexToWaitFor, 30, 500);