public void SetData(XmlReader xmlRead)
        {
            int    mProblemIndex;
            string mProblemTitle;
            string mProblemQuestion;

            XMLSwitcher.TryParse(xmlRead, "ProblemIndex", out mProblemIndex);
            XMLSwitcher.TryParse(xmlRead, "ProblemTitle", out mProblemTitle);
            XMLSwitcher.TryParse(xmlRead, "QuestionDetail", out mProblemQuestion);

            index    = mProblemIndex;
            title    = mProblemTitle;
            question = mProblemQuestion;
        }
Exemple #2
0
 public void SetData(XmlReader xmlRead)
 {
     XMLSwitcher.TryParse(xmlRead, "PizzaIndex", out mPizzaIndex);
     XMLSwitcher.TryParse(xmlRead, "PizzaName", out mPizzaName);
     XMLSwitcher.TryParse(xmlRead, "PizzaPrice", out mPizzaPrice);
 }