Beispiel #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            ClassProduct product = new ClassProduct();

            product.saveProduct(newProduct);
            this.Close();
        }
Beispiel #2
0
 private void EditProduct_Load(object sender, EventArgs e)
 {
     this.Text            = product.codProduct;
     txtIdProduct.Text    = product.idProduct.ToString();
     txtCodProduct.Text   = product.codProduct;
     txtCategory.Text     = product.category;
     txtModel.Text        = product.model;
     txtQuantity.Value    = product.quantity;
     txtValueProduct.Text = product.valueProduct.ToString();
     rxtDescription.Text  = product.description;
     classProduct         = new ClassProduct();
 }