public void ConformToRecord(Business theBiz)
 {
     linkedBiz = theBiz;
     VenueName.Text = linkedBiz.name;
     if (linkedBiz.image_url != null)
         VenueImage.SetImage (new NSUrl (linkedBiz.image_url));
     else {
         // VenueImage.SetImage(placeholderImage);
     }
     VenueRatingImage.SetImage (new NSUrl (linkedBiz.rating_img_url_large));
 }
        public void ConformToRecord(Business theBiz)
        {
            linkedBiz = theBiz;
            VenueName.Text = linkedBiz.name;
            if (!String.IsNullOrEmpty(linkedBiz.image_url ))
                VenueImage.SetImage (new NSUrl (linkedBiz.image_url));
            else {
                // VenueImage.SetImage(locationPlaceholderImage);
            }

            if (!String.IsNullOrEmpty (linkedBiz.rating_img_url_large))
                VenueRatingImage.SetImage (new NSUrl (linkedBiz.rating_img_url_large));
            else {
                // VenueRatingImage.SetImage(starPlaceholderImage);
            }
        }
Esempio n. 3
0
        public static Business CreateSample()
        {
            Business newGuy = new Business ();

            System.Random rnd = new System.Random ();
            newGuy.rating = rnd.Next (1, 4);
            newGuy.name = "Some Cool Place";
            newGuy.id = "id_" + rnd.Next (1000).ToString();
            return newGuy;
        }