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