예제 #1
0
        private void btnConfirma_Click(object sender, EventArgs e)
        {
            System.Media.SoundPlayer Player = new System.Media.SoundPlayer("Sound/Sombotaoentra.wav"); // Som ao apertar o botão
            Player.Play();

            frmSenha verifica = new frmSenha(); // Click do botão entra chama o form de verificação de senha

            verifica.ShowDialog();
            DialogResult = DialogResult.OK;
        }
예제 #2
0
        private void btnextrato_Click(object sender, EventArgs e)
        {
            System.Media.SoundPlayer Player = new System.Media.SoundPlayer("Sound/Sombotao.wav"); // Som ao apertar o botão
            Player.Play();
            Properties.Settings.Default.TipoopGlobal = "EXTRA";                                   // Variavel Global Tipo recebendo o tipo de operação
            frmSenha mostrarsaldo = new frmSenha();                                               // Click no botão extrato chama o formulario de senha

            mostrarsaldo.ShowDialog();
            // this.Close();
        }
예제 #3
0
        private void btn1000_Click(object sender, EventArgs e)
        {
            System.Media.SoundPlayer Player = new System.Media.SoundPlayer("Sound/Sombotao.wav"); // Som ao apertar o botão
            Player.Play();
            Properties.Settings.Default.ValoresSaquedep = 1000;                                   // Configurações de  Propriedades Global Saque recebendo valor 1000
            frmSenha verifica = new frmSenha();                                                   // Click no botão 1000 chama o formulario de senha

            verifica.ShowDialog();
            DialogResult = DialogResult.OK;
        }
예제 #4
0
        private void btnentra_Click(object sender, EventArgs e)
        {
            System.Media.SoundPlayer Player = new System.Media.SoundPlayer("Sound/Sombotaoentra.wav"); // Som ao apertar o botão
            Player.Play();



            if (txtSaque.Text == string.Empty)       //Verificando se foi digitado valores
            {
                MessageBox.Show("Não foi Digitado Valores no Campo", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            else if (Convert.ToDecimal(txtSaque.Text) > 2000) // Verificando se o valor do saque não passou de 2000
            {
                MessageBox.Show("Limite Máximo para Saque R$ 2000,00", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            else
            {
                Properties.Settings.Default.ValoresSaquedep = Convert.ToDecimal(txtSaque.Text); // Configurações de  Propriedades Global Saque recebendo valor do txtSaque
                frmSenha verifica = new frmSenha();                                             // Click no botão Entra chama o formulario de senha
                verifica.ShowDialog();
                DialogResult = DialogResult.OK;
            }
        }
예제 #5
0
 private void btnConfirma_Click(object sender, EventArgs e)
 {
     System.Media.SoundPlayer Player = new System.Media.SoundPlayer("Sound/Sombotaoentra.wav"); // Som ao apertar o botão
     Player.Play();
     if (this.contas == Convert.ToInt32(txtConta.Text))
     {
         Properties.Settings.Default.ValoresSaquedep = Convert.ToDecimal(txtDeposito.Text);
         frmSenha verifica = new frmSenha();       //Se a conta digitada for igual a que esta logada então verifica senha
         verifica.ShowDialog();
         DialogResult = DialogResult.OK;
     }
     else
     {
         Properties.Settings.Default.NomeGlobal      = veri.nomeusu;
         Properties.Settings.Default.SaldoGlobal     = veri.Saldo;
         Properties.Settings.Default.NroDigitoGlobal = veri.Nro_digito;  // Configurações de  Propriedades Global recebendo valores dos atributos da conta destino
         Properties.Settings.Default.NroContaGlobal  = veri.Nro_conta;
         Properties.Settings.Default.ValoresSaquedep = Convert.ToDecimal(txtDeposito.Text);
         novo.depositar(Convert.ToInt32(txtConta.Text), Convert.ToDecimal(txtDeposito.Text), "DEP +");
         frmResulOp diferente = new frmResulOp();
         diferente.ShowDialog();
         DialogResult = DialogResult.OK;
     }
 }