public void AddShapeChangeObserver(IShapeChangeObserver shapeChangeObserver) { if (!_shapeChangeObservers.Contains(shapeChangeObserver)) { _shapeChangeObservers.Add(shapeChangeObserver); } }
private void RemoveMoveObserverFromShapes(IShapeChangeObserver observer) { for (var i = 1; i <= _storage.GetMaxIndex(); i++) { _storage.GetItem(i).RemoveShapeChangeObserver(observer); } }
public void RemoveShapeChangeObserver(IShapeChangeObserver shapeChangeObserver) { _shapeChangeObservers.Remove(shapeChangeObserver); }