/// <summary> /// Attach the model and view to this presenter. /// </summary> /// <param name="model">The initial supplement model</param> /// <param name="view">The supplement view to work with</param> /// <param name="explrPresenter">The parent explorer presenter</param> public void Attach(object model, object view, ExplorerPresenter explrPresenter) { supplement = model as Supplement; supplementView = view as SupplementView; explorerPresenter = explrPresenter; ConnectViewEvents(); PopulateView(); explorerPresenter.CommandHistory.ModelChanged += OnModelChanged; }
/// <summary> /// Attach the model and view to this presenter. /// </summary> /// <param name="model">The initial supplement model</param> /// <param name="view">The supplement view to work with</param> /// <param name="explorerPresenter">The parent explorer presenter</param> public void Attach(object model, object view, ExplorerPresenter explrPresenter) { supplement = model as Supplement; supplementView = view as SupplementView; explorerPresenter = explrPresenter; ConnectViewEvents(); PopulateView(); explorerPresenter.CommandHistory.ModelChanged += OnModelChanged; }