public SessionCell(UITableViewCellStyle style, NSString ident, MIX10Xml.Session session, string big, string small) : base(style, ident) { SelectionStyle = UITableViewCellSelectionStyle.Blue; bigLabel = new UILabel () { TextAlignment = UITextAlignment.Left, }; smallLabel = new UILabel () { TextAlignment = UITextAlignment.Left, Font = smallFont, TextColor = UIColor.DarkGray }; button = UIButton.FromType (UIButtonType.Custom); button.TouchDown += delegate { UpdateImage (ToggleFavorite ()); }; UpdateCell (session, big, small); ContentView.Add (bigLabel); ContentView.Add (smallLabel); ContentView.Add (button); }
public void Update(MIX10Xml.Speaker speaker) { _speaker = speaker; LoadHtmlString (FormatText ()); }
public SpeakerBioViewController(MIX10Xml.Speaker speaker) : base() { _speaker = speaker; }
public void Update(MIX10Xml.Session session) { DisplaySession = session; LoadHtmlString(FormatText()); }
public SessionViewController(MIX10Xml.Session session, bool isFromFavs) : this(session) { IsFromFavoritesView = isFromFavs; DisplaySession = session; }
public SessionViewController(MIX10Xml.Session session) : base() { DisplaySession = session; }
public SessionElement(MIX10Xml.Session session) : base(session.Title) { this.session = session; if(String.IsNullOrEmpty(session.Room)) subtitle = String.Format ("{0}", session.GetSpeakerList ()); else if (String.IsNullOrEmpty(session.GetSpeakerList())) subtitle = String.Format("{0} room", session.Room); else subtitle = String.Format ("{0} room; {1}", session.Room, session.GetSpeakerList ()); }
public void UpdateCell(MIX10Xml.Session session, string big, string small) { this.session = session; UpdateImage (AppDelegate.UserData.IsFavorite (session.Code)); bigLabel.Font = big.Length > 35 ? midFont : bigFont; bigLabel.Text = big; smallLabel.Text = small; }