Esempio n. 1
0
        private void agregar_Click(object sender, EventArgs e)
        {
            var frm = new VehiculoAddForm();

            frm.ShowDialog();
            GetData();
        }
Esempio n. 2
0
        private void editar_Click(object sender, EventArgs e)
        {
            if (vehiculoBindingSource.Current == null)
            {
                MessageBox.Show("Seleccione un vehiculo");
            }
            dynamic current = vehiculoBindingSource.Current;

            var idBien = current.IdBien;

            var frm = new VehiculoAddForm(idBien);

            frm.ShowDialog();
            GetData();
        }