protected virtual void OnBoundsChanged(BoundsChangedEventArgs a) { if (bounds != a.Bounds) { bounds = a.Bounds; OnReallocate(); if (boundsChanged != null) { boundsChanged(this, a); } } }
protected virtual void OnBoundsChanged(BoundsChangedEventArgs a) { var bounds = new Rectangle(location, size); if (bounds != a.Bounds) { size = a.Bounds.Size; location = a.Bounds.Location; Reallocate(); if (boundsChanged != null) { boundsChanged(this, a); } } }
protected virtual void OnBoundsChanged(BoundsChangedEventArgs a) { if (bounds != a.Bounds) { bounds = a.Bounds; OnReallocate (); if (boundsChanged != null) boundsChanged (this, a); } }