Example #1
0
        private void FormFinanceiro_BuscaFavorecido_Load(object sender, EventArgs e)
        {
            if (operacao == 0)
            {
                this.Text = "BUSCAR FAVORECIDO";
            }
            else
            {
                this.Text = "BUSCAR DEVEDOR";
            }

            favorecidos = favorecidoDAO.ListaFavorecido();
            if (favorecidos == null)
            {
                txt_nome.Enabled = false;
                MessageBox.Show("Não há nenhum favorecido cadastrado");
            }
            else
            {
                dataGridView1.DataSource = favorecidos;
            }
        }