Пример #1
0
 protected virtual void OnThresholdReached(ThresholdReachedEventArgs e)
 {
     ThresholdReachedEventHandler handler = ThresholdReached;
     if (handler != null)
     {
         handler(this, e);
     }
 }
        protected virtual void ExecutarEvento(EventosDiversos e)
        {
            ThresholdReachedEventHandler handler = EventThresholdReached;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Пример #3
0
        protected virtual void ExecutarEvento2(EventosDiversos e)
        {
            ThresholdReachedEventHandler handler2 = EventThresholdReachedChamaMensagemDB;

            if (handler2 != null)
            {
                handler2(this, e);
            }
        }
Пример #4
0
        /// <summary>
        /// The OnThresholdReached.
        /// </summary>
        /// <param name="e">The e<see cref="ThresholdReachedEventArgs"/>.</param>
        protected virtual void OnThresholdReached(ThresholdReachedEventArgs e)
        {
            ThresholdReachedEventHandler handler = ThresholdReached;

            if (handler != null)   // Check the is someone who listening (subscribed) for this event
            {
                handler(this, e);
            }
        }
        protected virtual void OnThresholdReached(ThresholdReachedEventArgs e)
        {
            // Creating the event handler that is based on the delegate defined below
            ThresholdReachedEventHandler handler = ThresholdReached;

            if (handler != null)
            {
                // Assigning the arguments that the event handler will give to its subscribing functions
                handler(this, e);
            }
        }