コード例 #1
0
        private void btnBorrar_Click(object sender, EventArgs e)
        {
            ABMEditorial oABMEditorial = new ABMEditorial();

            oABMEditorial.FormMode1  = ABMEditorial.FormMode.delete;
            oABMEditorial.OEditorial = oEditorial;
            oABMEditorial.ShowDialog();
            oSoporteForm.limpiarGrid(dgvEditorial);
            dgvEditorial.DataSource = oEditorialService.obtenerTodosPorTabla();
            oABMEditorial.Dispose();
        }
コード例 #2
0
        private void btnAgregar_Click(object sender, EventArgs e)
        {
            ABMEditorial oABMEditorial = new ABMEditorial();

            oABMEditorial.FormMode1 = ABMEditorial.FormMode.insert;
            oABMEditorial.cargarEditorial();
            oABMEditorial.ShowDialog();
            oSoporteForm.limpiarGrid(dgvEditorial);
            dgvEditorial.DataSource = oEditorialService.obtenerTodos();
            oABMEditorial.Dispose();
        }