private void ConsultarCpf() { Business.RHBusiness busrh = new Business.RHBusiness(); List <Model.Entities.tb_funcionario> list = busrh.ListarPorTodos(); cboCpf.DisplayMember = nameof(Model.Entities.tb_funcionario.ds_cpf); cboCpf.DataSource = list; }
public frmAlterarFuncionario() { InitializeComponent(); Business.RHBusiness busrh = new Business.RHBusiness(); List <Model.Entities.tb_funcionario> list = busrh.ListarPorTodos(); cboCpf.DisplayMember = nameof(Model.Entities.tb_funcionario.ds_cpf); cboCpf.DataSource = list; }