private void dgvSubcategoria_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     frmFormas fr = new frmFormas();
     fr.formin = temList[dgvFormas.CurrentCell.RowIndex];
     AbrirVentana(fr);
     LoadGrid();
 }
 private void btnModificar_Click(object sender, EventArgs e)
 {
     if (dgvFormas.CurrentCell.RowIndex >= 0)
     {
         frmFormas fr = new frmFormas();
         fr.formin = temList[dgvFormas.CurrentCell.RowIndex];
         AbrirVentana(fr);
         LoadGrid();
     }
     else
     {
         MessageBox.Show("Debes selecciona un elemento para poder modificar");
     }
 }