麻烦sqlite加载日期

麻烦sqlite加载日期

本文介绍了麻烦sqlite加载日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<pre>>/**I have a table named Math, with questions and 4 answers for each >question..and when the student answers correctly I want to go to the next >question. I did something(I will attached the code) but the application >never go to the next question... I dont know how to do that, heeeelp?**/




<pre>    
 

public Test ()
		{
			InitializeComponent ();
            questions = App.Database.GetQuestions();
            size = questions.Count;
            Debug.WriteLine(size);
            Debug.WriteLine("==============================");
            Debug.WriteLine("==============================");
            Debug.WriteLine(i);
            Debug.WriteLine(size);
            Debug.WriteLine("==============================");
           if (i < size)
            {
                titleLabel.Text = questions[i].question;
                one.Text = questions[i].answer1;
                two.Text = questions[i].answer2;
                three.Text = questions[i].answer3;
                four.Text = questions[i].answer4;
                i++;
            }
            else
                titleLabel.Text = "FMM";
            //i++;
        }
//:(
        private void corect(object sender, EventArgs e)
        {
            if(i < size)
            {
                if((sender as Button).ClassId == questions[i].correct)
                {
                   
                    titleLabel.Text = questions[i].question;
                    one.Text = questions[i].answer1;
                    two.Text = questions[i].answer2;
                    three.Text = questions[i].answer3;
                    four.Text = questions[i].answer4;
                   i++;
                }
                else
                    DisplayAlert("Firar", "Mai incearca", "OK");
                
            }
            else
                DisplayAlert("Felicitari", "Urmatoarea intrebare", "OK");
           
        }







我的尝试:



我做了代码知道什么是正确答案




What I have tried:

I made the code for know what is the right answer

推荐答案


这篇关于麻烦sqlite加载日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 06:28