Beispiel #1
0
        private void btnAgregar_Click(object sender, EventArgs e)
        {
            try
            {
                BDbase.GuardarPlatillo(Convert.ToInt32(txtIDplatillo.Text), txtnombre.Text, Convert.ToInt32(txtprecio.Text));
                MessageBox.Show("Platillo Guardado en la BO");
                Limpiar();
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }