Пример #1
0
 protected virtual void OnBoundsChanged(BoundsChangedEventArgs a)
 {
     if (bounds != a.Bounds)
     {
         bounds = a.Bounds;
         OnReallocate();
         if (boundsChanged != null)
         {
             boundsChanged(this, a);
         }
     }
 }
Пример #2
0
        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);
                }
            }
        }
Пример #3
0
 protected virtual void OnBoundsChanged(BoundsChangedEventArgs a)
 {
     if (bounds != a.Bounds) {
         bounds = a.Bounds;
         OnReallocate ();
         if (boundsChanged != null)
             boundsChanged (this, a);
     }
 }