Exemplo n.º 1
0
        private void btn_Alterar_Click(object sender, EventArgs e)
        {
            _fluxocaixa.Nome           = txt_Nome_Conta.Text;
            _fluxocaixa.DataVencimento = dtp_Data.Value;
            _fluxocaixa.Descricao      = txt_Descricao.Text;

            //if (_rep.UpdateSeguro(_fluxocaixa))
            if (_rep.Update(_fluxocaixa))
            {
                MessageBox.Show("ALTERADO COM SUCESSO");
            }
            else
            {
                MessageBox.Show("Erro ao Salvar, tente novamente");
            }
            limpa_Campos();
            this.Close();
        }