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); }
private void View_PropertySelected(object sender, PropertyEventArgs e) { var presenter = new PropertyPresenter(_state, e.Property); _navigationService.PushPresenter(presenter); }
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.home); var app = PropertyCrossApplication.GetApplication(this); presenter = (PropertyPresenter) app.Presenter; presenter.SetView(this); app.CurrentActivity = this; }