Ejemplo n.º 1
0
 /// <summary>
 /// Raises <see cref="Draw"/> event
 /// </summary>
 protected virtual void OnDraw(DrawEventArgs e)
 {
     if (HasEvents)
     {
         var handler = (EventHandler<DrawEventArgs>)Events[DrawEvent];
         if (handler != null)
         {
             e.Handled = true;
             handler(this, e);
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Handles draw events
 /// </summary>
 void ISciterBehavior.ProcessDraw(DrawEventArgs e)
 {
     OnDraw(e);
 }