Пример #1
0
        private void FormMoneda_Load(object sender, EventArgs e)
        {
            SqlConnection cone = new SqlConnection(@"Data source=thinkpad\sqlexpress; initial catalog=Moneda; integrated security=true");


            SqlCommand cm = new SqlCommand("select * from Monedas", cone);

            cone.Open();

            SqlDataReader dr = cm.ExecuteReader();

            while (dr.Read())

            {
                cbxMoneda.Items.Add(dr.GetString(1));
            }


            cone.Close();

            mostrard();

            DetallesMon Datos = new DetallesMon();

            dgvMonedas.DataSource = Datos.Consulta("Select top 10 IDMoneda as ID, NomMoneda as Moneda, TasaMoneda as Tasa from Monedas");
        }
Пример #2
0
 private void txtTasa2_KeyPress(object sender, KeyPressEventArgs e)
 {
     DetallesMon.Numeros(e);
 }
Пример #3
0
 private void cbxMoneda_KeyPress(object sender, KeyPressEventArgs e)
 {
     DetallesMon.SoloLetras(e);
 }