Ejemplo n.º 1
0
        private void button_add_Click(object sender, EventArgs e)
        {
            Items_products product = new Items_products();

            product.name     = textBox_name.Text;
            product.barcode  = textBox_barcode.Text;
            product.price    = Double.Parse(textBox_price.Text);
            product.quantity = Int32.Parse(textBox_quantity.Text);
            AccessSQLite.SaveItems(product);
            MessageBox.Show("product added to the database");
            mainform.getFromSQLite();
        }