Пример #1
0
 /// <summary>
 /// Raises <see cref="Focus"/> event
 /// </summary>
 protected virtual void OnFocus(FocusEventArgs e)
 {
     if (HasEvents)
     {
         var handler = (EventHandler<FocusEventArgs>)Events[FocusEvent];
         if (handler != null)
         {
             e.Handled = true;
             handler(this, e);
         }
     }
 }
Пример #2
0
 /// <summary>
 /// Handles focus events
 /// </summary>
 void ISciterBehavior.ProcessFocus(FocusEventArgs e)
 {
     OnFocus(e);
 }