Ejemplo n.º 1
0
        private async void PopulaListas()
        {
            List <Autor> autores = await AutorServices.GetAutores();

            comboBoxAutor.DataSource    = autores;
            comboBoxAutor.DisplayMember = "nome";
            comboBoxAutor.ValueMember   = "id_autor";

            List <Livro> livros = await LivroServices.GetLivros();

            comboBoxLivro.DataSource    = livros;
            comboBoxLivro.DisplayMember = "nome";
            comboBoxLivro.ValueMember   = "id_livro";
        }
Ejemplo n.º 2
0
        private async void AtualizaTela()
        {
            List <Autor> lista = await AutorServices.GetAutores();

            dataGridView1.DataSource = lista;
        }