private void btnModificar_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count == 1) { Seccion s = new Seccion(); s.SeccionID = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].FormattedValue.ToString()); s = s.Detalle(); frmEditorSeccion frm = new frmEditorSeccion(s); frm.ShowDialog(); } }
private void btnDetalleSeccion_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count == 1) { Seccion sec = new Seccion(); sec.SeccionID = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].FormattedValue.ToString()); sec = sec.Detalle(); frmEditorSeccion frm = new frmEditorSeccion(sec); frm.ModoDetalle(); frm.Show(); } }
private void btnNuevo_Click(object sender, EventArgs e) { frmEditorSeccion frm = new frmEditorSeccion(); frm.ShowDialog(); }