Demo entry 6729473

Caixa_Eletronico(1)

   

Submitted by anonymous on Apr 02, 2018 at 22:14
Language: C#. Code size: 1.4 kB.

namespace ProjCaixaEletronico{
    public partial class Form1 : Form{
        Conta c1;
        ContaPoupanca c2;
        public Form1()
        {
            InitializeComponent();
            tx_conta.Enabled=false;
            tx_saldo.Enabled=false;
            tx_titular.Enabled=false;

        }

        private void bt_con_Click(object sender, EventArgs e)
        {
            this.c1=new Conta();
            //c1.Num=10;
            c1.Tit = new Cliente();
            //c1.Tit.Nome="Jorje";
            //c1.valor_saque(2000);
            imprimir();
        }

        private void bt_sac_Click(object sender, EventArgs e){
            //Conta c1=new Conta();
            //tx_saldo.Text=(""+this.c1.mt_sacar(Convert.ToDouble(tx_oper.Text)));
            this.c1.mt_sacar(Convert.ToDouble(tx_oper.Text));
            imprimir();
        }

        private void bt_dep_Click(object sender, EventArgs e){
            //tx_saldo.Text = (""+c1.mt_depo(Convert.ToDouble(tx_oper.Text)));
            this.c1.mt_depo(Convert.ToDouble(tx_oper.Text));
            imprimir();
        }

        private void imprimir(){
            tx_conta.Text=(this.c1.Num.ToString());
            tx_titular.Text=(""+this.c1.Tit.Nome);
            tx_saldo.Text=(Convert.ToString(this.c1.Sal));
        }
        
    }
}

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).