Esempio n. 1
0
 private ProductStyle GetProductStyleFrom(DataRow row)
 {
     if (row == null) return null;
     ProductStyle ps = new ProductStyle();
     ps.Remark = Formatter.GetStringValueFrom(row, "Remark");
     ps.StyleID = Formatter.GetStringValueFrom(row, "StyleID");
     ps.StyleName = Formatter.GetStringValueFrom(row, "StyleName");
     return ps;
 }
Esempio n. 2
0
 private void AssignNewStyle(ProductStyle item)
 {
     if (item == null) return;
     if (!styleList.ContainsKey(item.StyleID)) return;
     ProductStyle oldItem = styleList[item.StyleID];
     oldItem.Remark = item.Remark;
     oldItem.StyleName = item.StyleName;
 }