private NhoNhanhCollection TaoDsONhoNhanh(List<TuVung> DSNgauNhien) { NhoNhanhCollection NhoNhanhColl = new NhoNhanhCollection(); for (int i = 0; i < 10; i++) { NhoNhanhBO nnBO = new NhoNhanhBO(); nnBO.STTEng = i; nnBO.NoiDungEng = DSNgauNhien[i].Tu; NhoNhanhColl.Add(nnBO); NhoNhanhBO nnBO1 = new NhoNhanhBO(); nnBO1.STTEng = i; nnBO1.NoiDungEng = DSNgauNhien[i].NghiaTu; NhoNhanhColl.Add(nnBO1); } return NhoNhanhColl; }
public void Add(NhoNhanhBO nhonhanh) { List.Add(nhonhanh); }