private void txtIva_KeyPress(object sender, KeyPressEventArgs e)
 {
     ValidarDatos.NumerosDecimales(e);
 }
 private void txtCajasContenido_KeyPress(object sender, KeyPressEventArgs e)
 {
     ValidarDatos.SoloNumeros(e);
 }
 private void txtCantiMatPrima_KeyPress(object sender, KeyPressEventArgs e)
 {
     ValidarDatos.SoloNumeros(e);
 }
        //private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
        //{
        //    SqlCommand d = new SqlCommand("select amountPurchased from inputs where name= '" + comboBox2.Text + "'", connection);
        //    //connection.Open();
        //    SqlDataReader r = d.ExecuteReader();
        //    while (r.Read())
        //    {
        //        exisI.Text = r["amountPurchased"].ToString();
        //    }
        //    //connection.Close();
        //    txtCantidadInsumo.Enabled = true;
        //}

        private void txtPallet_KeyPress(object sender, KeyPressEventArgs e)
        {
            ValidarDatos.SoloNumeros(e);
        }