Exemple #1
0
 private System.Drawing.Rectangle GetObjectInvalidationArea()
 {
     System.Drawing.Rectangle result = GripsProvider.GetInvalidationRectangle();
     result = System.Drawing.Rectangle.Union(result, _objectHost.HostViewer.WorkspaceToControl(_obj.GetTransformedVObjectBounds(), Aurigma.GraphicsMill.Unit.Point));
     result.Inflate(VObject.InvalidationMargin);
     return(result);
 }
Exemple #2
0
 protected void InvalidateDesigner()
 {
     System.Drawing.Rectangle invalidationRect = GripsProvider.GetInvalidationRectangle();
     invalidationRect.Inflate(VObject.InvalidationMargin);
     _objectHost.HostViewer.InvalidateViewer(new MultiLayerViewerInvalidationTarget(invalidationRect));
 }