finishing up the removal of Rooded SettingsChanged

Added AnyPrinterSettingChanged event
This commit is contained in:
Lars Brubaker 2018-11-13 09:47:58 -08:00
parent 7296aea99f
commit 1c9b105926
5 changed files with 10 additions and 8 deletions

View file

@ -60,7 +60,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
// Year|month|day|versionForDay (to support multiple revisions on a given day)
public static int LatestVersion { get; } = 201606271;
// TODO: Change to instance based, revise listeners and register to expect specific printer settings
public static EventHandler AnyPrinterSettingChanged;
public EventHandler SettingChanged;
public event EventHandler MaterialPresetChanged;
@ -73,6 +74,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
public void OnSettingChanged(string slicerConfigName)
{
SettingChanged?.Invoke(this, new StringEventArgs(slicerConfigName));
AnyPrinterSettingChanged?.Invoke(this, new StringEventArgs(slicerConfigName));
}
public event EventHandler PrintLevelingEnabledChanged;