Vous êtes sur la page 1sur 1

using System; using iCarouselSDK; using System.Collections.Generic; using MonoTouch.UIKit; using System.

Drawing; namespace FinalRoulette { public abstract class RouletteItem : UIView { public int indexForLabel {set; get;} public string tag {set; get;} public CarouselExchangeDelegate exchangeDelegate { set; get;} public static RectangleF itemFrame = new RectangleF (0, 0, 150, 300); public RouletteItem (RouletteItem item) { this.indexForLabel = item.indexForLabel; this.tag = item.tag; this.exchangeDelegate = item.exchangeDelegate; } public RouletteItem (int i, string t) { indexForLabel = i; tag = t; UIImageView im = new UIImageView (UIImage.FromFile ("pag e.png") ); this.Frame = itemFrame; im.Frame = itemFrame; this.UserInteractionEnabled = true; UILabel label = new UILabel (itemFrame); label.BackgroundColor = UIColor.Clear; label.TextAlignment = UITextAlignment.Center; label.Text = indexForLabel.ToString (); im.AddSubview (label); this.AddSubview (im); } } }

Vous aimerez peut-être aussi