private void IncreaseCommunicationErrorsCount() { _communicationErrorsCount++; CommsErrorCountChanged?.Invoke(this, EventArgs.Empty); if (MTRCommunication != null) { var infoArgs = CreateInfoArgs(string.Format(@"Communication error count increased, count is now {0}", _communicationErrorsCount)); MTRCommunication(this, infoArgs); } }
/// <summary> /// This resets the number of the communication errors /// </summary> private void ResetCommunicationErrorsCount() { _communicationErrorsCount = 0; CommsErrorCountChanged?.Invoke(this, EventArgs.Empty); }