Esempio n. 1
0
 public void Push(Question q)
 {
     q_Stack.Push(q);
 }
Esempio n. 2
0
        /// <summary>
        /// phương thức load xml từ file
        /// </summary>
        /// <param name="content"></param>
        private void XmlLoad(XmlNode content)
        {
            if (content.InnerText.Contains("Easy"))
            {
                foreach (XmlNode node in content)
                {
                    if (node.Name == "content")
                    {
                        Question ques = new Question(node);
                        Easy_questionList.Add(ques);
                    }
                }
            }
            if (content.InnerText.Contains("Hard"))
            {
                foreach (XmlNode node in content)
                {
                    if (node.Name == "content")
                    {
                        Question ques = new Question(node);
                        Hard_questionList.Add(ques);
                    }
                }
            }

            PopulateTreeView1();
        }