示例#1
0
        private void playStart_Click(object sender, EventArgs e)
        {
            int    n        = int.Parse(numberQuestion.Text);
            string fileName = getFileName();

            database = new TrueFalse(fileName);
            database.Load(fileName);
            numberQuestion.Text = (int.Parse(numberQuestion.Text) + 1).ToString();
            tboxQuestion.Text   = database[(int)n].text;
            availabilityChange();
        }
示例#2
0
        private void miNewGame_Click(object sender, EventArgs e)
        {
            int    n        = int.Parse(numberQuestion.Text);
            string fileName = getFileName();

            database = new TrueFalse(fileName);
            database.Load(fileName);
            numberQuestion.Text = "1";
            tboxQuestion.Text   = database[(int)n].text;
            count = 0;
        }