private void frmAluguel_Load(object sender, EventArgs e) { //Parte de Alugueis CAMADAS.BLL.Clientes bllCli = new CAMADAS.BLL.Clientes(); cmbCliente.DisplayMember = "nome"; cmbCliente.ValueMember = "id"; cmbCliente.DataSource = bllCli.Select(); CAMADAS.BLL.Aluguel bllAlug = new CAMADAS.BLL.Aluguel(); dtgAluguel.DataSource = ""; dtgAluguel.DataSource = bllAlug.Select(); this.dtgAluguel.DefaultCellStyle.Font = new Font("Arial", 12); habilitaControlesAluguel(false); limpaCamposAlug(); //Parte de Itens CAMADAS.BLL.Avioes bllAviao = new CAMADAS.BLL.Avioes(); CAMADAS.BLL.ItensAluguel bllItensAluguel = new CAMADAS.BLL.ItensAluguel(); cmbAviao.DisplayMember = "modelo"; cmbAviao.ValueMember = "id"; cmbAviao.DataSource = bllAviao.Select(); limpaCamposItens(); habilitaControlesItens(false); dtgItem.DataSource = bllItensAluguel.Select(); this.dtgItem.DefaultCellStyle.Font = new Font("Arial", 12); }
private void rbdTodos_CheckedChanged(object sender, EventArgs e) { lblFiltrar.Visible = false; txtFiltro.Visible = false; btnFiltrar.Visible = false; CAMADAS.BLL.Clientes bllCliente = new CAMADAS.BLL.Clientes(); dtGrvClientes.DataSource = ""; dtGrvClientes.DataSource = bllCliente.Select(); }