Exemple #1
0
 private void btnEnlazar_Click(object sender, EventArgs e)
 {
     this.SeccionSeleccionada = new Seccion();
     if (dataGridView1.SelectedRows.Count == 1)
     {
         this.SeccionSeleccionada.SeccionID = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].FormattedValue.ToString());
         this.SeccionSeleccionada           = SeccionSeleccionada.Detalle();
     }
     this.Close();
 }
Exemple #2
0
 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();
     }
 }
Exemple #3
0
 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();
     }
 }