Пример #1
0
        private void btnAñadirStock_Click(object sender, EventArgs e)
        {
            int cantidad;

            if (!(int.TryParse(txtCantidadStock.Text, out cantidad)))
            {
                MessageBox.Show("Debes introducir una cantidad adecuada");
                return;
            }
            String result = _negocio.ActualizarStockArticulo(dgvProductos.SelectedCells[0].Value.ToString(), cantidad);

            MessageBox.Show(result);
        }