/* public override void LayoutSubviews () { base.LayoutSubviews (); } */ public void ShowQuestion (Question question) { CurrentQuestion = question; this.BeginInvokeOnMainThread (delegate { _tableView.TableHeaderView = GetHeaderView (); this._tableView.Source = new QuizTableViewsource (this, CurrentQuestion.Answers); this._tableView.ReloadData (); }); SetGategoryImage (); }
public static Model.Question ToLbkQuestion (this Loewenbraeu.Data.Service.Question source) { var question = new Model.Question (){ Text = source.Description, Category = (Model.QuestionCategory)source.Category, Points = source.Points }; if (!source.Answers.IsNullOrEmpty ()) { question.Answers = source.Answers.ToLbkAnswer (); } return question; }