private async void button2_Click(object sender, EventArgs e)
        {
            var nombre      = textBox2.Text;
            var descripcion = textBox3.Text;
            var id          = textBox1.Text;

            if (string.IsNullOrEmpty(id) || string.IsNullOrWhiteSpace(id))
            {
                Mensajes.EmptyFields();
                textBox1.Focus();
            }

            if (string.IsNullOrEmpty(nombre) || string.IsNullOrWhiteSpace(nombre))
            {
                Mensajes.EmptyFields();
                textBox2.Focus();
            }
            else if (string.IsNullOrEmpty(descripcion) || string.IsNullOrWhiteSpace(descripcion))
            {
                Mensajes.EmptyFields();
                textBox3.Focus();
            }
            else
            {
                var tipoProducto = new TipoProducto();
                tipoProducto.id_tipo       = Convert.ToInt32(id);
                tipoProducto.tipo_producto = nombre;
                tipoProducto.descripcion   = descripcion;
                int re = await _controller.UpdateTipoProduco(tipoProducto);

                if (re > 0)
                {
                    Mensajes.AgregadoConExito();
                    Limpiar();
                    await initData();
                }
                else
                {
                    Mensajes.OcurrioUnError();
                }
            }
        }