Beispiel #1
0
        private void LoadData()
        {
            Edito.Clear();

            Edito = ArmaDAL.ListoArmet("sadfsdf", "sadff");

            this.bindingSource1.Clear();

            Edito.ForEach(delegate(ArmaBO d)
            {
                this.bindingSource1.Add(d);
            });
        }
Beispiel #2
0
        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);
            });
        }