Exemplo n.º 1
0
        private void LoadData()
        {
            Edito.Clear();

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

            this.bindingSource1.Clear();

            Edito.ForEach(delegate(ArmaBO d)
            {
                this.bindingSource1.Add(d);
            });
        }
Exemplo n.º 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);
            });
        }
Exemplo n.º 3
0
        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();
            }
        }