public CountryController(ICountryView view, IList countriesList)//
 {
     _view           = view;
     _countriessList = countriesList;
     view.SetController(this);
     //CountryService = new CountryService();
 }
Пример #2
0
        public CountryPresenter(ICountryView view, Pais pais, IUnityContainer container)
        {
            if (view == null)
            {
                throw new ArgumentNullException("view");
            }
            if (pais == null)
            {
                throw new ArgumentNullException("país");
            }
            if (container == null)
            {
                throw new ArgumentNullException("container");
            }

            this._container = container;
            //this._modelService = modelService;

            this.SubmitCommand = new DelegateCommand <object>(this.Submit, this.CanSubmit);
            this.CancelCommand = new DelegateCommand <object>(this.Cancel);

            this.Pais = pais;

            this._view = view;
            this._view.SetPresenter(this);

            OnPropertyChanged("Pais"); // para executar a validação dos dados
        }
 public RootView(IBrandView brandView, ICityView cityView, ICountryView countryView, IGenderView genderView, ISuperstarView superstarView)
 {
     _brandView     = brandView;
     _cityView      = cityView;
     _countryView   = countryView;
     _genderView    = genderView;
     _superstarView = superstarView;
 }
 /// <summary>method: AddView
 /// add view to viewlist
 /// </summary>
 /// <param name="aView"></param>
 public void AddView(ICountryView aView)
 {
     ViewList.Add(aView);
 }