private void LoadData() { Edito.Clear(); Edito = ArmaDAL.ListoArmet("sadfsdf", "sadff"); this.bindingSource1.Clear(); Edito.ForEach(delegate(ArmaBO d) { this.bindingSource1.Add(d); }); }
private void btnSearch_Click(object sender, EventArgs e) { Edito.Clear(); string serarch = txtSearch.Text; Edito = ArmaDAL.ListoArmet(serarch, "p"); this.bindingSource1.Clear(); Edito.ForEach(delegate(ArmaBO d) { this.bindingSource1.Add(d); }); }
private void BtnFshij_Click(object sender, EventArgs e) { if (this.dsatagridArmet[0, dsatagridArmet.CurrentCell.RowIndex].Value.ToString() != null) { var d = new ArmaBO(); d.ArmaID = Convert.ToInt32(this.dsatagridArmet[0, dsatagridArmet.CurrentCell.RowIndex].Value); int qo = d.ArmaID; ArmaDAL.fshij(qo); LoadData(); } }