示例#1
0
        private async void CarregaCombos()
        {
            ClienteBd  bdCliente  = new ClienteBd();
            ComarcaBd  bdComarca  = new ComarcaBd();
            AdvogadoBd bdAdvogado = new AdvogadoBd();

            cbCliente.DataSource = await bdCliente.GetAll();

            cbCliente.ValueMember   = "Id";
            cbCliente.DisplayMember = "Nome";

            cbComarca.DataSource = await bdComarca.GetAll();

            cbComarca.ValueMember   = "Id";
            cbComarca.DisplayMember = "Nome";

            cbAdvogacia.DataSource = await bdAdvogado.GetAll();

            cbAdvogacia.ValueMember   = "Id";
            cbAdvogacia.DisplayMember = "Nome";
        }
示例#2
0
 private async Task <List <Database_Class.Classes.Advogado> > CarregaDados()
 {
     return(await bdAdvogado.GetAll());
 }