Use auto properties
This commit is contained in:
parent
87fab816dd
commit
eb57227267
1 changed files with 5 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue