示例#1
0
        private void tsmiOpen_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();

            if (openFileDialog.ShowDialog() == DialogResult.OK)
            {
                databaseOfQuestions = new TrueFalse(openFileDialog.FileName);
                databaseOfQuestions.LoadFromXMLFormat();
                nudNumber.Minimum = 1;
                nudNumber.Maximum = databaseOfQuestions.Count;
                nudNumber.Value   = 1;
                TurnButtons(false);
                cboxTrue.Enabled  = true;
                btnAnswer.Enabled = true;
            }
        }