Use auto properties

This commit is contained in:
John Lewin 2018-01-07 08:16:36 -08:00
parent 87fab816dd
commit eb57227267

View file

@ -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