public ChiTietHD(int mahd) { ListPhong = new List <Phong>(); DataTable dt = ChiTietHDControl.layDSPhongCuaHD(mahd); for (int i = 0; i < dt.Rows.Count; ++i) { Phong phong = new Phong(Convert.ToInt32(dt.Rows[i]["MaPhong"].ToString())); ListPhong.Add(phong); } }
public void ThemPhong(int id) { Phong p = new Phong(id); ListPhong.Add(p); }