Ejemplo n.º 1
0
 public virtual void Clear()
 {
     this.Shape     = null;
     this.ShowGrips = false;
     if (_gripPainter != null)
     {
         _gripPainter.Dispose();
     }
     _gripPainter = null;
 }
Ejemplo n.º 2
0
        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);
            }
        }