Пример #1
0
        protected void btnGuardar_Click(object sender, EventArgs e)
        {
            nValor unValorN = new nValor();
            oValor unValorO = new oValor();

            unValorO.Verde = decimal.Parse(txtMiCodene.Text.Replace('.', ','));
            unValorO.Amarillo = decimal.Parse(txtDeTercerosCodene.Text.Replace('.', ','));

            string sError = unValorN.Alta(ref unValorO);

            txtMiCodene.Text = unValorO.Verde.ToString();
            txtDeTercerosCodene.Text = unValorO.Amarillo.ToString();
        }