예제 #1
0
        private void InvalidateObject(BaseObject ob)
        {
            Region R = ob.GetRegion();

            if (ob.Area != null && ob.Area.Canvas != null)
            {
                R.Intersect(ob.Area.Canvas.Rect);
            }
            Invalidate(R);
        }
예제 #2
0
        private void InvalidateObject(BaseObject ob)
        {
            Region region = ob.GetRegion();

            if (ob.Area != null)
            {
                region.Intersect(ob.Area.Canvas.Rect);
            }
            this.Designer.Invalidate(region);
        }