コード例 #1
0
ファイル: DataService.cs プロジェクト: CecleCW/ProductMan
 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;
 }
コード例 #2
0
ファイル: DataService.cs プロジェクト: CecleCW/ProductMan
 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;
 }