Example #1
0
		public void UpdateCell (BL.Exhibitor showExhibitor)
		{
			exhibitor = showExhibitor;
			nameLabel.Text = exhibitor.Name;
			cityCountryLabel.Text = exhibitor.City + ", " + exhibitor.Country;
			boothLocationLabel.Text = exhibitor.Locations;
		
			var u = new Uri(exhibitor.ImageUrl);
			logoImageView.Image = ImageLoader.DefaultRequestImage(u, this);
		}
Example #2
0
        public void UpdateCell(BL.Exhibitor showExhibitor)
        {
            exhibitor               = showExhibitor;
            nameLabel.Text          = exhibitor.Name;
            cityCountryLabel.Text   = exhibitor.City + ", " + exhibitor.Country;
            boothLocationLabel.Text = exhibitor.Locations;

            var u = new Uri(exhibitor.ImageUrl);

            logoImageView.Image = ImageLoader.DefaultRequestImage(u, this);
        }
Example #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MWC.iOS.UI.CustomElements.ExhibitorCell"/> class.
        /// </summary>
        public ExhibitorCell(BL.Exhibitor showExhibitor) : base(new CGRect(0, 0, 320, 66))
        {
            exhibitor = showExhibitor;

            // create the control and add it to the view
            nameLabel                 = new UILabel(new CGRect(cellTextLeft, 7, 231, 27));   //9->7,23->25
            nameLabel.Font            = UIFont.FromName("Helvetica-Light", AppDelegate.Font16pt);
            nameLabel.BackgroundColor = UIColor.FromWhiteAlpha(0f, 0f);
            AddSubview(nameLabel);

            cityCountryLabel                 = new UILabel(new CGRect(cellTextLeft, 9 + 23, 231, 16));  // 15->16
            cityCountryLabel.Font            = UIFont.FromName("Helvetica-LightOblique", AppDelegate.Font10pt);
            cityCountryLabel.TextColor       = UIColor.DarkGray;
            cityCountryLabel.BackgroundColor = UIColor.FromWhiteAlpha(0f, 0f);
            AddSubview(cityCountryLabel);

            boothLocationLabel                 = new UILabel(new CGRect(cellTextLeft, 9 + 23 + 16 + 2, 231, 9)); //15->17, 7->9
            boothLocationLabel.Font            = UIFont.FromName("Helvetica-Light", AppDelegate.Font7_5pt);
            boothLocationLabel.BackgroundColor = UIColor.FromWhiteAlpha(0f, 0f);
            AddSubview(boothLocationLabel);

            logoImageView = new UIImageView(new CGRect(8, 8, 44, 44));
            AddSubview(logoImageView);
        }
Example #4
0
		/// <summary>
		/// Initializes a new instance of the <see cref="MWC.iOS.UI.CustomElements.ExhibitorCell"/> class.
		/// </summary>
		public ExhibitorCell (BL.Exhibitor showExhibitor) : base (new RectangleF (0, 0, 320, 66 ) )
		{
			exhibitor = showExhibitor;

			// create the control and add it to the view
			nameLabel = new UILabel ( new RectangleF ( cellTextLeft, 7, 231, 27 ) ); //9->7,23->25
			nameLabel.Font = UIFont.FromName ( "Helvetica-Light", AppDelegate.Font16pt );
			nameLabel.BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f);
			AddSubview (nameLabel);
			
			cityCountryLabel = new UILabel ( new RectangleF ( cellTextLeft, 9+23, 231, 16 ) );  // 15->16
			cityCountryLabel.Font = UIFont.FromName ( "Helvetica-LightOblique",  AppDelegate.Font10pt );
			cityCountryLabel.TextColor = UIColor.DarkGray;
			cityCountryLabel.BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f);
			AddSubview ( cityCountryLabel );
			
			boothLocationLabel = new UILabel ( new RectangleF ( cellTextLeft, 9+23+16+2, 231, 9 ) ); //15->17, 7->9
			boothLocationLabel.Font = UIFont.FromName ( "Helvetica-Light", AppDelegate.Font7_5pt );
			boothLocationLabel.BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f);
			AddSubview ( boothLocationLabel );
			
			logoImageView = new UIImageView ( new RectangleF ( 8, 8, 44, 44 ) );
			AddSubview(logoImageView);
		}
		/// <summary>
		/// for iPad (SplitViewController)
		/// </summary>
		public ExhibitorElement (BL.Exhibitor showExhibitor, MWC.iOS.Screens.iPad.Exhibitors.ExhibitorSplitView exhibitorSplitView) : base ("")
		{
			exhibitor = showExhibitor;
			splitView = exhibitorSplitView;	// could be null, in current implementation
		}
		/// <summary>
		/// for iPhone
		/// </summary>
		public ExhibitorElement (BL.Exhibitor exhibitor) : base ("")
		{
			this.exhibitor = exhibitor;
		}
Example #7
0
 /// <summary>
 /// for iPad (SplitViewController)
 /// </summary>
 public ExhibitorElement(BL.Exhibitor showExhibitor, MWC.iOS.Screens.iPad.Exhibitors.ExhibitorSplitView exhibitorSplitView) : base("")
 {
     exhibitor = showExhibitor;
     splitView = exhibitorSplitView;             // could be null, in current implementation
 }
Example #8
0
 /// <summary>
 /// for iPhone
 /// </summary>
 public ExhibitorElement(BL.Exhibitor exhibitor) : base("")
 {
     this.exhibitor = exhibitor;
 }