public virtual void Clear() { this.Shape = null; this.ShowGrips = false; if (_gripPainter != null) { _gripPainter.Dispose(); } _gripPainter = null; }
public virtual void OnPaint(IRenderEventArgs e) { var shape = this.Shape; if ((shape != null) && (ShowGrips)) { var save = SaveMatrix(e.Surface); SetMatrix(e.Surface); GripPainter.Render(e.Surface); RestoreMatrix(e.Surface, save); } }