public CountryListPresenter(ICountryListView view, IUnityContainer container) { if (view == null) { throw new ArgumentNullException("view"); } if (container == null) { throw new ArgumentNullException("container"); } CreateCommand = new DelegateCommand <Pais>(OnCreateExecute); DeleteCommand = new DelegateCommand <Pais>(OnDeleteExecute, CanDelete); UpdateCommand = new DelegateCommand <Pais>(OnUpdateExecute, CanUpdate); SearchCommand = new DelegateCommand <object>(OnSearchExecute); CloseCommand = new DelegateCommand <CloseViewType>(OnCloseViewExecute); this._container = container; this._view = view; this._view.SetPresenter(this); SearchCommand.Execute(this); }
public void SetView(ICountryListView countryListView) { view = countryListView; }