Esempio n. 1
0
        public static CauHoiTuLuanDto Khoi_tao(XmlElement Nut)
        {
            CauHoiTuLuanDto kq = new CauHoiTuLuanDto();

            kq.SoTT    = int.Parse(Nut.GetAttribute("SoThuTu"));
            kq.NoiDung = Nut.GetAttribute("NoiDung");
            return(kq);
        }
Esempio n. 2
0
        public static BaiTapDto Khoi_Tao(XmlElement nut)
        {
            BaiTapDto kq = new BaiTapDto();

            kq.SoTT = int.Parse(nut.GetAttribute("SoThuTu"));
            kq.DanhSachCauHoiTuLuan = new ArrayList();
            foreach (XmlElement nut_con in nut.ChildNodes)
            {
                CauHoiTuLuanDto chtl = CauHoiTuLuanDao.Khoi_tao(nut_con);
                kq.DanhSachCauHoiTuLuan.Add(chtl);
            }

            return(kq);
        }