Esempio n. 1
0
        public override bool Equals(GeometricShutter other)
        {
            if (other is PolygonalShutter)
            {
                return(Equals((PolygonalShutter)other));
            }

            return(false);
        }
Esempio n. 2
0
        public override bool Equals(GeometricShutter other)
        {
            if (other is RectangularShutter)
            {
                return(Equals((RectangularShutter)other));
            }

            return(false);
        }
Esempio n. 3
0
 internal void AddDicomShutter(GeometricShutter dicomShutter)
 {
     _dicomShutters.Add(dicomShutter);
     Invalidate();
 }
 /// <summary>
 /// Constructs a new <see cref="RemoveGeometricShutterUndoableCommand"/>.
 /// </summary>
 /// <param name="parent">The parent <see cref="GeometricShuttersGraphic"/>.</param>
 /// <param name="shutter">The <see cref="GeometricShutter"/> to add to <paramref name="parent"/>.</param>
 public RemoveGeometricShutterUndoableCommand(GeometricShuttersGraphic parent, GeometricShutter shutter)
 {
     _parent  = parent;
     _shutter = shutter;
 }