示例#1
0
        protected virtual void OnPasteDetected()
        {
            if (PasteDetected == null)
            {
                logger.Warning("Tried to fire a PasteDetected event, but there were no listeners.");
                return;
            }

            PasteDetected.Invoke(this, new EventArgs());
        }
示例#2
0
 protected virtual void OnPasteDetected()
 {
     PasteDetected?.Invoke(this, new EventArgs());
 }
 protected virtual void OnPasteDetected()
 {
     PasteDetected?.Invoke(this, EventArgs.Empty);
 }