From e2b9513fa36e1a7c024b52f49dccc714f71ab4b5 Mon Sep 17 00:00:00 2001 From: John Lewin Date: Sun, 11 Feb 2018 10:34:40 -0800 Subject: [PATCH] Change accessibility of collector function to private --- Library/Providers/GeneratorItem.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Library/Providers/GeneratorItem.cs b/Library/Providers/GeneratorItem.cs index deeac26d7..0b0fd21cf 100644 --- a/Library/Providers/GeneratorItem.cs +++ b/Library/Providers/GeneratorItem.cs @@ -71,6 +71,11 @@ namespace MatterHackers.MatterControl.Library { private Func nameResolver; + /// + /// The delegate responsible for producing the item + /// + private Func collector; + public GeneratorItem(Func nameResolver) { this.nameResolver = nameResolver; @@ -80,7 +85,7 @@ namespace MatterHackers.MatterControl.Library public GeneratorItem(Func nameResolver, Func collector, string category = null) { this.nameResolver = nameResolver; - this.Collector = collector; + this.collector = collector; this.Category = category; //this.Color = ColorRange.NextColor(); } @@ -95,16 +100,11 @@ namespace MatterHackers.MatterControl.Library public bool IsProtected { get; set; } public bool IsVisible => true; - /// - /// The delegate responsible for producing the item - /// - public Func Collector { get; } - public Color Color { get; set; } public Task GetContent(Action reportProgress) { - var result = Collector?.Invoke(); + var result = collector?.Invoke(); // If the content has not set a color, we'll assign from the running ColorRange if (result.Color == Color.Transparent)