public void UpdateContent(InterviewSession session) { SessionProjectTitle.Text = Queries.ProjectById(session.ProjectID).Title; SessionLength.Text = Queries.FormatFromSeconds(session.Prompts[session.Prompts.Count - 1].End); SessionParticipants.Text = BuildParticipantsNames(session.Participants); SessionCreateDate.Text = session.CreatedAt.ToString("MM/dd, HH:mm"); if (session.IsUploading) { SessionIsUploadedIndicator.StartAnimating(); } else { SessionIsUploadedIndicator.StopAnimating(); } }
public void UpdateContent(InterviewSession session) { var content = LanguageChoiceManager.ContentByLanguage(Queries.ProjectById(session.ProjectID)); SessionProjectTitle.Text = content.Title; SessionLength.Text = Queries.FormatFromSeconds(session.Prompts[session.Prompts.Count - 1].End); SessionParticipants.Text = BuildParticipantsNames(session.Participants); SessionCreateDate.Text = session.CreatedAt.ToString("MM/dd, HH:mm", CultureInfo.InvariantCulture); if (session.IsUploading) { SessionContainerView.BackgroundColor = UIColor.LightGray; SessionIsUploadedIndicator.StartAnimating(); } else { SessionContainerView.BackgroundColor = UIColor.White; SessionIsUploadedIndicator.StopAnimating(); } }