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