public override void Paint( Context context, Rectangle clip, Rectangle logicalBounds ) { _updates = context.Updates; double seconds = DateTime.Now.Subtract( _start ).TotalSeconds; _animation.OnPaint( context.Graphics, logicalBounds, _animating, seconds ); }
public Context( Graphics g, RibbonControl ribbonControl, Renderer renderer, History history, Updates updates , Dictionary<Section, Rectangle> mapSectionToRectangle, Dictionary<Item, Rectangle> mapItemToRectangle) { _graphics = g; _renderer = renderer; _history = history; _updates = updates; _ribbonControl = ribbonControl; _mapSectionToRectangle = mapSectionToRectangle; _mapItemToRectangle = mapItemToRectangle; }
public override void Paint( WinFormsGloss.Controls.Ribbon.Context context, Rectangle clip, Rectangle logicalBounds ) { base.Paint( context, clip, logicalBounds ); _updates = context.Updates; double seconds = DateTime.Now.Subtract( _start ).TotalSeconds; if( _animation != null ) { _animation.OnPaint( context.Graphics, logicalBounds, true, seconds ); } }