Exemple #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     productDal.Added(new Product
     {
         Name        = nametxt.Text,
         UnitPrice   = Convert.ToDecimal(unittxt.Text),
         StockAmount = Convert.ToInt32(stocktxt.Text),
     });
     GettAll();
 }