예제 #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);
     }
 }