public SessionDetailViewModel (Session session, string conferenceName) { Session = session; ConferenceName = conferenceName; Title = Session.Title; Description = Session.Description; StartDate = Session.StartDate; EndDate = Session.EndDate; Room = Session.Room; }
public void SetSession(Session session, string highlightColor) { _session = session; sessionContentView.Layer.BorderColor = UIColor.LightGray.CGColor; sessionContentView.Layer.BorderWidth = 0.5f; highlightColorBar.BackgroundColor = UIColorExtensions.FromHex (highlightColor); sessionSpeakerView.BackgroundColor = UIColorExtensions.FromHex (highlightColor); sessionTitle.Text = _session.Title ?? string.Empty; sessionDate.Text = _session.StartDate.HasValue ? _session.StartDate.Value.ToShortTimeString () : string.Empty; sessionRoom.Text = _session.Room ?? string.Empty; sessionSpeaker.Text = _session.SpeakerName (); sessionDescription.Text = _session.Description ?? string.Empty; }
public SpeakerDetailViewModel (Session session, Speaker speaker) { Speaker = speaker; }