Пример #1
0
        private void button7_Click(object sender, EventArgs e)
        {
            String inversion1     = Microsoft.VisualBasic.Interaction.InputBox("Introduzca el monto de dinero a Invertir", "Invertir CDT");
            String InteresMensual = Microsoft.VisualBasic.Interaction.InputBox("Introduzca el interes mensual", "Invertir CDT");

            if (inversion1 != null && InteresMensual != null)
            {
                inversion.invertir(Convert.ToDouble(inversion1), Convert.ToDouble(InteresMensual), Int32.Parse(s: txtmes.Text));
                txtcdt.Text   = Convert.ToString(inversion.calcularValorPresente(Int32.Parse(txtmes.Text))) + " [" + Convert.ToString(inversion.darInteresMensual()) + "%]";
                txttotal.Text = Convert.ToString(corriente.darSaldo() + inversion.calcularValorPresente(Int32.Parse(txtmes.Text)) + ahorros.darSaldo());
            }
            else
            {
                MessageBox.Show("Ingrese valores");
            }
        }