From fcad236a2beee2cb9e2c5443ac6e23108edff039 Mon Sep 17 00:00:00 2001 From: jlewin Date: Wed, 24 Apr 2019 11:51:47 -0700 Subject: [PATCH] Use auto property --- MatterControlLib/ApplicationView/PartWorkspace.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/MatterControlLib/ApplicationView/PartWorkspace.cs b/MatterControlLib/ApplicationView/PartWorkspace.cs index 6d88e1254..a59d5752d 100644 --- a/MatterControlLib/ApplicationView/PartWorkspace.cs +++ b/MatterControlLib/ApplicationView/PartWorkspace.cs @@ -1,5 +1,5 @@ /* -Copyright (c) 2018, Lars Brubaker, John Lewin +Copyright (c) 2019, Lars Brubaker, John Lewin All rights reserved. Redistribution and use in source and binary forms, with or without @@ -38,8 +38,6 @@ namespace MatterHackers.MatterControl { public class PartWorkspace { - private ISceneContext _sceneContext { get; } - public PartWorkspace() { } @@ -69,22 +67,20 @@ namespace MatterHackers.MatterControl public PartWorkspace(ISceneContext bedConfig) { - var extraContainers = new List(); - // Create a new library context for the SaveAs view this.LibraryView = new LibraryConfig() { ActiveContainer = new WrappedLibraryContainer(ApplicationController.Instance.Library.RootLibaryContainer) }; - _sceneContext = bedConfig; - Name = _sceneContext.EditContext?.SourceItem?.Name ?? "Unknown"; + this.SceneContext = bedConfig; + Name = bedConfig.EditContext?.SourceItem?.Name ?? "Unknown"; } public string Name { get; set; } [JsonIgnore] - public ISceneContext SceneContext => _sceneContext; + public ISceneContext SceneContext { get; } public EditContext EditContext { get; set; }