Ejemplo n.º 1
0
 /// <summary>Raises the <see cref="PinRequested" /> event.</summary>
 /// <param name="sender">The object that raised the event.</param>
 protected virtual void OnPinRequested(Bluetooth sender)
 {
     if (_onPinRequested == null)
     {
         _onPinRequested = OnPinRequested;
     }
     PinRequested?.Invoke(sender);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Raises the <see cref="PinRequested"/> event.
 /// </summary>
 /// <param name="sender">The object that raised the event.</param>
 protected virtual void OnPinRequested(Bluetooth sender)
 {
     if (onPinRequested == null)
     {
         onPinRequested = new PinRequestedHandler(OnPinRequested);
     }
     if (Program.CheckAndInvoke(PinRequested, onPinRequested, sender))
     {
         PinRequested(sender);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Raises the <see cref="PinRequested"/> event.
 /// </summary>
 /// <param name="sender">The object that raised the event.</param>  
 protected virtual void OnPinRequested(Bluetooth sender)
 {
     if (onPinRequested == null) onPinRequested = new PinRequestedHandler(OnPinRequested);
     if (Program.CheckAndInvoke(PinRequested, onPinRequested, sender))
     {
         PinRequested(sender);
     }
 }