Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            FormPrecision pr = new FormPrecision();

            pr.getid(m);
            pr.ShowDialog();
            this.Actualiser();
        }
Ejemplo n.º 2
0
        private void precisionDataGridView_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            Precision pr = (Precision)precisionBindingSource.Current;

            if (e.ColumnIndex == 6)
            {
                new PrecisionBAO().Delete(pr.Id);
                this.Actualiser();
            }
            if (e.ColumnIndex == 5)
            {
                FormPrecision prx = new FormPrecision();
                prx.ismodify = true;
                prx.getid(m);
                prx.update(pr);
                prx.ShowDialog();
                this.Actualiser();
            }
        }