コード例 #1
0
 public Edit(ShopEntities db, Good g)
 {
     InitializeComponent();
     this.db          = db;
     this.g           = g;
     TypeBox.Text     = g.Type.ToString();
     NameBox.Text     = g.Name.ToString();
     PriceBox.Text    = g.Price.ToString();
     QuantityBox.Text = g.Quantity.ToString();
 }
コード例 #2
0
 public Add(ShopEntities db)
 {
     InitializeComponent();
     this.db = db;
 }