Make PrintLevelingChange event static
- Cleanup namespaces - Guard for null reference with null conditional invoke
This commit is contained in:
parent
85b2ddefc3
commit
80dab6c9e8
6 changed files with 57 additions and 26 deletions
|
|
@ -55,6 +55,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
// Year|month|day|versionForDay (to support multiple revisions on a given day)
|
||||
public static int LatestVersion { get; } = 201606271;
|
||||
|
||||
public static RootedObjectEventHandler PrintLevelingEnabledChanged = new RootedObjectEventHandler();
|
||||
|
||||
private static PrinterSettingsLayer baseLayerCache;
|
||||
|
||||
public int DocumentVersion { get; set; }
|
||||
|
|
@ -343,8 +345,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
public SettingsHelpers Helpers { get; set; }
|
||||
|
||||
public RootedObjectEventHandler PrintLevelingEnabledChanged = new RootedObjectEventHandler();
|
||||
|
||||
public bool PrinterSelected => OemLayer?.Keys.Count > 0;
|
||||
|
||||
internal void RunInTransaction(Action<PrinterSettings> action)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue