public void UpdateCell(BL.UserGroup showExhibitor)
        {
            usergroup = showExhibitor;
            nameLabel.Text = usergroup.Name;

            var u = new Uri(usergroup.ImageUrl);
            logoImageView.Image = ImageLoader.DefaultRequestImage(u, this);
        }
Beispiel #2
0
        public void UpdateCell(BL.UserGroup showExhibitor)
        {
            usergroup      = showExhibitor;
            nameLabel.Text = usergroup.Name;


            var u = new Uri(usergroup.ImageUrl);

            logoImageView.Image = ImageLoader.DefaultRequestImage(u, this);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="MWC.iOS.UI.CustomElements.ExhibitorCell"/> class.
        /// </summary>
        public UserGroupCell(BL.UserGroup showUserGroup)
            : base(new RectangleF (0, 0, 320, 66 ))
        {
            usergroup = showUserGroup;

            // 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);

            logoImageView = new UIImageView ( new RectangleF ( 8, 8, 44, 44 ) ) {ContentMode = UIViewContentMode.ScaleAspectFit};
            AddSubview(logoImageView);
        }
Beispiel #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MWC.iOS.UI.CustomElements.ExhibitorCell"/> class.
        /// </summary>
        public UserGroupCell(BL.UserGroup showUserGroup) : base(new RectangleF(0, 0, 320, 66))
        {
            usergroup = showUserGroup;

            // 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);


            logoImageView = new UIImageView(new RectangleF(8, 8, 44, 44))
            {
                ContentMode = UIViewContentMode.ScaleAspectFit
            };
            AddSubview(logoImageView);
        }
 /// <summary>
 /// for iPad (SplitViewController)
 /// </summary>
 public UserGroupElement(BL.UserGroup showUserGroup, MWC.iOS.Screens.iPad.UserGroups.UserGroupsSplitView usergroupSplitView)
     : base("")
 {
     usergroup = showUserGroup;
     splitView = usergroupSplitView;	// could be null, in current implementation
 }
 /// <summary>
 /// for iPhone
 /// </summary>
 public UserGroupElement(BL.UserGroup usergroup)
     : base("")
 {
     this.usergroup = usergroup;
 }
Beispiel #7
0
 /// <summary>
 /// for iPad (SplitViewController)
 /// </summary>
 public UserGroupElement(BL.UserGroup showUserGroup, MWC.iOS.Screens.iPad.UserGroups.UserGroupsSplitView usergroupSplitView) : base("")
 {
     usergroup = showUserGroup;
     splitView = usergroupSplitView;             // could be null, in current implementation
 }
Beispiel #8
0
 /// <summary>
 /// for iPhone
 /// </summary>
 public UserGroupElement(BL.UserGroup usergroup) : base("")
 {
     this.usergroup = usergroup;
 }