public virtual void BindSelectPlaylistView(ISelectPlaylistView view, LibraryBrowserEntity item) { _selectPlaylistView = view; _selectPlaylistPresenter = Bootstrapper.GetContainer().Resolve<ISelectPlaylistPresenter>(new NamedParameterOverloads() { { "item", item } }); _selectPlaylistPresenter.BindView(view); _selectPlaylistView.OnViewDestroy = (view2) => { _selectPlaylistPresenter.ViewDestroyed(); _selectPlaylistPresenter = null; _selectPlaylistView = null; }; }
public virtual ISelectPlaylistView CreateSelectPlaylistView(LibraryBrowserEntity item) { _selectPlaylistView = Bootstrapper.GetContainer().Resolve<ISelectPlaylistView>(new NamedParameterOverloads() { { "item", item } }); return _selectPlaylistView; }