Exemple #1
0
        private void grilla_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (grilla.RowCount > 0)
            {
                ManejaMonedas objManejaMonedas = new ManejaMonedas();

                int intCodigo = Convert.ToInt32(grilla.CurrentRow.Cells[0].Value.ToString());

                objMonedas = objManejaMonedas.BuscarMoneda(intCodigo);
                AsignoObjetoACampos(objMonedas);
            }
        }
Exemple #2
0
        private decimal getCotizacion()
        {
            ManejaMonedas objManejaMonedas = new ManejaMonedas();
            Monedas       objMoneda        = new Monedas();
            decimal       deCotizacion     = 1;

            objMoneda = objManejaMonedas.BuscarMoneda(Convert.ToInt32(cboMoneda.SelectedValue));
            if (objMoneda != null)
            {
                deCotizacion = objMoneda.DeCotizacion;
            }

            return(deCotizacion);
        }