Prefer local reference to static

This commit is contained in:
John Lewin 2018-04-07 22:51:10 -07:00
parent b236fdf53c
commit bd3db106b0
20 changed files with 45 additions and 43 deletions

View file

@ -85,7 +85,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
textColor = ActiveTheme.Instance.PrimaryAccentColor
};
var buttonFactory = ApplicationController.Instance.Theme.ButtonFactory;
var buttonFactory = theme.ButtonFactory;
FlowLayoutWidget mainContainer = new FlowLayoutWidget(FlowDirection.TopToBottom)
{