private void TimedDetection(Object source, ElapsedEventArgs e) { if (DetectCard().ToString() == "AllOk") { CardDetected?.Invoke(this, e); } }
protected virtual void OnCardDetected(CardDetectedEventArgs e) { CardDetected.Invoke(this, e); }
protected void OnCardDetected(CardDetectedEventArgs cardArgs) { CardDetected?.Invoke(this, cardArgs); }