public PropertyViewController (PropertyPresenter presenter) : base ("PropertyViewController", null)
    {
      Title = "Property Details";
      _presenter = presenter;

      _favouriteButton = new UIBarButtonItem("+",
            UIBarButtonItemStyle.Bordered, FavouriteButtonEventHandler);
    }
    public PropertyViewController (PropertyPresenter presenter) : base ("PropertyViewController", null)
    {
      Title = "Property Details";
      _presenter = presenter;

      _starImage = new UIImage("star.png");
      _noStarImage = new UIImage("nostar.png");

      _favouriteButton = new UIBarButtonItem(_starImage,
            UIBarButtonItemStyle.Bordered, FavouriteButtonEventHandler);
    }
Пример #3
0
 private void View_PropertySelected(object sender, PropertyEventArgs e)
 {
     var presenter = new PropertyPresenter(_state, e.Property);
       _navigationService.PushPresenter(presenter);
 }
Пример #4
0
        private void View_PropertySelected(object sender, PropertyEventArgs e)
        {
            var presenter = new PropertyPresenter(_state, e.Property);

            _navigationService.PushPresenter(presenter);
        }
Пример #5
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.property_view);

            SupportActionBar.Title = Resources.GetString(Resource.String.property_title);
            SupportActionBar.SetDisplayHomeAsUpEnabled(true);

            priceText = (TextView) FindViewById(Resource.Id.property_price);
            locationText = (TextView)FindViewById(Resource.Id.property_location);
            propertyImage = (ImageView) FindViewById(Resource.Id.property_image);
            overviewText = (TextView) FindViewById(Resource.Id.property_overview);
            informationText = (TextView) FindViewById(Resource.Id.property_information);

            placeholder = BitmapFactory.DecodeResource(Resources, Resource.Drawable.ic_launcher);

            var app = (PropertyFinderApplication)Application;
            presenter = (PropertyPresenter) app.Presenter;
            presenter.SetView(this);
            app.CurrentActivity = this;
        }