Exemplo n.º 1
0
		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;
		}
Exemplo n.º 2
0
		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;
		}
Exemplo n.º 3
0
		public SpeakerDetailViewModel (Session session, Speaker speaker)
		{
			Speaker = speaker;
		}