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); }
private void InvalidateObject(BaseObject ob) { Region region = ob.GetRegion(); if (ob.Area != null) { region.Intersect(ob.Area.Canvas.Rect); } this.Designer.Invalidate(region); }