private void btnNuevo_Click(object sender, EventArgs e) { PlanesDesktop frmPlanesDesktop = new PlanesDesktop(ApplicationForm.ModoForm.Alta); frmPlanesDesktop.ShowDialog(); frmPlanesDesktop.Dispose(); }
private void btnEliminar_Click(object sender, EventArgs e) { if (ValidarDGV(dgvPlanes)) { int ID = ((Business.Entities.Plan) this.dgvPlanes.SelectedRows[0].DataBoundItem).Id; PlanesDesktop frmPlanesDesktop = new PlanesDesktop(ID, ModoForm.Baja); frmPlanesDesktop.ShowDialog(); frmPlanesDesktop.Dispose(); } }