From eb57227267fd294c95417bb849108ff8a449f8a7 Mon Sep 17 00:00:00 2001 From: John Lewin Date: Sun, 7 Jan 2018 08:16:36 -0800 Subject: [PATCH] Use auto properties --- .../Communication/FoundStringCallBacks.cs | 23 ++++--------------- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/MatterControl.Printing/Communication/FoundStringCallBacks.cs b/MatterControl.Printing/Communication/FoundStringCallBacks.cs index 1bb37a28d..de5f9a622 100644 --- a/MatterControl.Printing/Communication/FoundStringCallBacks.cs +++ b/MatterControl.Printing/Communication/FoundStringCallBacks.cs @@ -34,29 +34,16 @@ namespace MatterHackers.SerialPortCommunication { public class FoundStringEventArgs : EventArgs { - public bool CallbackWasCalled { get; set; } - - private bool sendToDelegateFunctions = true; - private string lineToCheck; - public FoundStringEventArgs(string lineReceived) { - this.lineToCheck = lineReceived.Trim(); + this.LineToCheck = lineReceived.Trim(); } - public string LineToCheck { get { return lineToCheck; } } + public bool CallbackWasCalled { get; set; } - public bool SendToDelegateFunctions - { - get - { - return sendToDelegateFunctions; - } - set - { - sendToDelegateFunctions = value; - } - } + public string LineToCheck { get; } + + public bool SendToDelegateFunctions { get; set; } } public class FoundStringCallbacks