Exemplo n.º 1
0
        private void txtValor_TextChanged(object sender, EventArgs e)
        {
            Aluguel a = (Aluguel)modelo;

            try { a.Validar(txtValor.Text, "Valor"); }
            catch (Exception ex) { MessageBox.Show(modelo.exibirMensagemErro(ex, 2)); }
        }
Exemplo n.º 2
0
        public void Aluguel_deve_ter_um_cliente_valido()
        {
            _aluguel.Cliente = null;

            _aluguel.Validar();
        }