예제 #1
0
        private void carregarcliente(int IdCliente)
        {
            Cliente cliente = controleCliente.Get(IdCliente);

            if (cliente != null)
            {
                //this.txtProduto.Text = dadosProduto.ProductName;
                this.IDCliente.Text   = cliente.Codigo.ToString();
                this.NomeCliente.Text = cliente.Nome;
            }
        }
 private void carregarcliente(int IdCliente)
 {
     //var dadosclientes = new ControleCliente().Get(IdCliente);
     c = cc.Get(IdCliente);
     if (c != null)
     {
         //this.txtProduto.Text = dadosProduto.ProductName;
         this.id_txt.Text     = c.Codigo.ToString();
         this.nome_txt.Text   = c.Nome;
         this.cpf_txt.Text    = c.CPF;
         this.email_txt.Text  = c.Email;
         this.dtnasc_txt.Text = c.Nascimento.ToString();
         this.tel_txt.Text    = c.Telefone;
         this.cel_txt.Text    = c.Celular;
         this.log_txt.Text    = c.Endereco.Rua;
         this.num_txt.Text    = c.Endereco.Numero.ToString();
         this.comp_txt.Text   = c.Endereco.Complemento;
         this.bairro_txt.Text = c.Endereco.Bairro;
         this.cidade_txt.Text = c.Endereco.Cidade;
         this.uf_txt.Text     = c.Endereco.UF;
         this.cep_txt.Text    = c.Endereco.CEP;
     }
 }