private void InitMyComponents() { this.catSrvBE = new CatalogoServBE(); this.catSrvBL = new CatalogoServBL(); FillCombos(); txtInd_AtmServV.Text = "E"; txtNumCache.Text = "60"; }
protected override void RefreshTlStrpBut_Click(object sender, EventArgs e) { base.RefreshTlStrpBut_Click(sender, e); try { CatalogoServBL catSrvBL = new CatalogoServBL(); List <CatalogoServBE> lstCatSrv = catSrvBL.GetList(); var source = new BindingSource(); source.DataSource = lstCatSrv; // dgrData.AutoGenerateColumns = true; dgrData.DataSource = source; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void InitMyComponents() { catSrvBL = new CatalogoServBL(); }