Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. [Serializable]
  2. public class SelectedItem
  3. {
  4. public int Id { set; get; } // 選択商品のID
  5. public string Name { set; get; } // 選択商品の商品名
  6. public int Price { set; get; } // 選択商品の価格
  7. public int Quantity { set; get; } // 選択商品の数量
  8.  
  9. // 1ページ目のGridView選択行のImageコントロールのImageUrlプロパティから
  10. // 取得した選択商品の画像ファイルへのパス
  11. // これを2ページのImageコントロールのImageUrlプロパティにセット
  12. public string Image { set; get; }
  13.  
  14. public SelectedItem(int id, string name, int price, int quantity, string image)
  15. {
  16. this.Id = id;
  17. this.Name = name;
  18. this.Price = price;
  19. this.Quantity = quantity;
  20. this.Image = image;
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement