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