Пример #1
0
        /// <summary>
        /// Invalidate the renderer
        /// </summary>
        /// <param name="bounds">bounds to invalidate</param>
        public virtual void Invalidate(Rectangle bounds)
        {
            EventHandler <Internal.Dockable.Data.InvalidateEventArgs> handler = Invalidated;

            if (handler != null)
            {
                InvalidateEventArgs args = new InvalidateEventArgs(bounds);
                handler(this, args);
            }
        }
Пример #2
0
 /// <summary>
 /// Occurs when renderer is invalidated
 /// </summary>
 /// <param name="sender">sender of the event</param>
 /// <param name="e">event arguments</param>
 private void OnRendererInvalidated(object sender, InvalidateEventArgs e)
 {
     if (e.Bounds.IsEmpty)
     {
         Invalidate();
     }
     else
     {
         Invalidate(e.Bounds);
     }
 }