public void BindController(TileBrushManagerPresenter controller) { if (_controller == controller) return; if (_controller != null) { _controller.SyncTileBrushManager -= SyncTileBrushManagerHandler; _controller.SyncTileBrushCollection -= SyncTileBrushCollectionHandler; _controller.SyncCurrentBrush -= SyncCurrentBrushHandler; } _controller = controller; if (_controller != null) { _controller.SyncTileBrushManager += SyncTileBrushManagerHandler; _controller.SyncTileBrushCollection += SyncTileBrushCollectionHandler; _controller.SyncCurrentBrush += SyncCurrentBrushHandler; _commandController.BindCommandManager(_controller.CommandManager); } else { _commandController.BindCommandManager(null); } }
public Presentation(EditorPresenter editor) { _editor = editor; _stdTools = new StandardToolsPresenter(_editor); _docTools = new DocumentToolsPresenter(_editor); _contentInfo = new ContentInfoArbitrationPresenter(_editor); _tilePoolList = new TilePoolListPresenter(_editor); _objectPoolCollection = new ObjectPoolCollectionPresenter(_editor); _tileBrushManager = new TileBrushManagerPresenter(_editor); _propertyList = new PropertyListPresenter(); _projectExplorer = new ProjectExplorerPresenter(_editor); }