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