Example #1
0
 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;
 }
Example #2
0
 public Product(ProductType type, string name, Brand brand, string remark)
 {
     ID = -1;
     Type = type;
     Name = name;
     Brand = brand;
     Remark = remark;
 }
Example #3
0
 public void RemoveBrand(Brand brand)
 {
     Brands.Remove(brand);
 }
Example #4
0
 public void AddBrand(Brand brand)
 {
     Brands.Add(brand);
 }