private void CarregarTabelaSubCategoria() { ConexaoDAL cx = new ConexaoDAL(DadosConexao.StringDeConexao); SubCategoriaBLL SubCatBLL = new SubCategoriaBLL(cx); dtgrMDCADSubCategoria.DataSource = SubCatBLL.DtgrSubCategoria(); this.ColunaTabelaTM(); }
private void IncluirSubCategoria() { this.CarregarIndiceComboCategoria(this.cbboxCADSubCatCategoria.SelectedItem.ToString()); CatInMd.SubCategoria = this.txtCADSubCatSubCategoria.Text; ConexaoDAL cx = new ConexaoDAL(DadosConexao.StringDeConexao); SubCategoriaBLL SubCatBLL = new SubCategoriaBLL(cx); if (SubCatBLL.IncluirSubCategoria(CatInMd)) { //this.LimparCampos("CliCad"); //this.AlterarBotoes("CliCad", 0); this.CarregarTabelaSubCategoria(); } }