예제 #1
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            // This is how you call a non-static method, you instantiate the class
            // first into a local variable.  This is the traditional way of doing things
            Linq2Xml GetXMLQA = new Linq2Xml();

            GetXMLQA.GetQA();

            QuestionAnswer frmAnswer         = new QuestionAnswer();
            int            numberOfQuestions = int.Parse(updTotalQuestions.Value.ToString());
            // Open new window frmAnser pass in numberOfQuestions
        }
예제 #2
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            // This is how you call a non-static method, you instantiate the class
            // first into a local variable.  This is the traditional way of doing things
            Linq2Xml GetXMLQA = new Linq2Xml();

            GetXMLQA.GetQA();


            //numberOfQuestions = int.Parse(updTotalQuestions.Value.ToString());
            // Open new window frmAnser pass in numberOfQuestions

            this.Hide();
            var frmAnswer = new SelectTest();

            frmAnswer.Closed += (s, args) => this.Close();
            frmAnswer.Show();
        }