Beispiel #1
0
        private void button6_Click(object sender, EventArgs e)
        {
            Actualizar_Catalogo update = new Actualizar_Catalogo();
            int Codproducto            = int.Parse(txt_CodProducto.Text);

            update.ex1(Codproducto, txt_Marca.Text, txt_Modelo.Text, txt_serie.Text);
        }
Beispiel #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            Actualizar_Catalogo UPDATE  = new Actualizar_Catalogo();
            MemoryStream        picture = new MemoryStream();

            try
            {
                picImagen.Image.Save(picture, ImageFormat.Jpeg);
            }
            catch
            {
            }
            byte[] aByte   = picture.ToArray();
            float  precio  = float.Parse(txt_precio.Text);
            float  talla   = float.Parse(txt_talla.Text);
            int    CodProd = int.Parse(txt_CodProducto1.Text);

            try
            {
                UPDATE.ex2(CodProd, talla, txt_color.Text, txt_material.Text, txt_categoria.Text, precio, aByte);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Ocurrio un errror de tipo: " + ex);
            }
        }