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) }); ProductsLoad(); MessageBox.Show("Added!"); }
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) }); ProductsLoad(); MessageBox.Show("Added!"); }