private void SearchCity(object param) { ICityListPresenter presenter = this._container.Resolve <ICityListPresenter>("ICityListPresenter"); presenter.CloseViewRequested += delegate(object sender, EventArgs eventArgs) { if (eventArgs == null) { return; } if ((eventArgs is CloseViewEventArgs) && ((eventArgs as CloseViewEventArgs).CloseViewOption == CloseViewType.Ok)) { this.Cidade = presenter.Cidade; } }; IBreadCrumbPresenter breadCrumb = this._container.Resolve <IBreadCrumbPresenter>(); if (breadCrumb != null) { breadCrumb.AddCrumb("Cidade", presenter); } }
public void SetPresenter(ICityListPresenter presenter) { DataContext = presenter; }