public UnexplodeTileCommand(IImageBox imageBox, object unexplodeMemento, NotifyRemoveUnexplodedTileCommand remove)
 {
     _imageBox         = imageBox;
     _unexplodeMemento = unexplodeMemento;
     _remove           = remove;
     _listObserver     = new ListObserver <ITile>(imageBox.Tiles, OnTilesChanged);
 }
        public override void Initialize()
        {
            base.Initialize();
            //Put a non-disposable object in so the tool doesn't get disposed 2x.
            ImageViewer.ExtensionData[typeof(ExtensionDataProxy)] = new ExtensionDataProxy(this);

            _imageBoxesObserver = new ListObserver <IImageBox>(ImageViewer.PhysicalWorkspace.ImageBoxes, OnImageBoxesChanged);

            UpdateEnabled();
        }
 public override void Initialize()
 {
     base.Initialize();
     _imageBoxesObserver = new ListObserver <IImageBox>(ImageViewer.PhysicalWorkspace.ImageBoxes, OnImageBoxesChanged);
     _imageBoxesObserver.SuppressChangedEvent = true;
 }