Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     _ProductDal.add(new Product
     {
         Name        = textBox1.Text,
         UnitPrice   = Convert.ToDecimal(textBox2.Text),
         StockAmount = Convert.ToInt32(textBox3.Text)
     });
     LoadProducts();
     MessageBox.Show("ADDED!");
 }