コード例 #1
0
        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);
            }
        }
コード例 #2
0
        public void ThemPhong(int id)
        {
            Phong p = new Phong(id);

            ListPhong.Add(p);
        }