private static Brand LoadBrand(DataRow dataRow) { int id = Convert.ToInt32(dataRow["BID"]); string name = dataRow["BrandName"].ToString(); Brand brand = new Brand(id, name); return brand; }
public Product(ProductType type, string name, Brand brand, string remark) { ID = -1; Type = type; Name = name; Brand = brand; Remark = remark; }
public void RemoveBrand(Brand brand) { Brands.Remove(brand); }
public void AddBrand(Brand brand) { Brands.Add(brand); }