コード例 #1
0
    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);
    }
コード例 #2
0
        private void View_PropertySelected(object sender, PropertyEventArgs e)
        {
            var presenter = new PropertyPresenter(_state, e.Property);

            _navigationService.PushPresenter(presenter);
        }
コード例 #3
0
 private void View_PropertySelected(object sender, PropertyEventArgs e)
 {
     var presenter = new PropertyPresenter(_state, e.Property);
       _navigationService.PushPresenter(presenter);
 }
コード例 #4
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.home);

            var app = PropertyCrossApplication.GetApplication(this);
            presenter = (PropertyPresenter) app.Presenter;
            presenter.SetView(this);
            app.CurrentActivity = this;
        }