Example #1
0
        protected void OnEventHandled(TrackedEvent newevent)
        {
            var handler = EventHandled;

            if (handler != null)
            {
                handler(newevent);
            }
        }
Example #2
0
 private void HandleEvent(object sender, RoutedEventArgs e)
 {
     // Try to figure out what element handled the event. Not precise.
     if (_isEnabled)
     {
         var entry = new EventEntry(sender, e.Handled);
         if (_currentEvent != null && _currentEvent.EventArgs == e)
         {
             _currentEvent.AddEventEntry(entry);
         }
         else
         {
             _currentEvent = new TrackedEvent(e, entry);
             OnEventHandled(_currentEvent);
         }
     }
 }
Example #3
0
        protected void OnEventHandled(TrackedEvent newevent)
        {
            var handler = EventHandled;

            handler?.Invoke(newevent);
        }