예제 #1
0
		/*
		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 ();
		}
예제 #2
0
파일: QuizMapping.cs 프로젝트: bpug/LbkIos
		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;
		}