private void btnDetallar_Click(object sender, EventArgs e)
 {
     if (dt_contratos.SelectedRows.Count > 0)
     {
         GUI.ContratoDetalle cd = new ContratoDetalle(dt_contratos.SelectedRows[0]);
         cd.ShowDialog();
         Cargar();
     }
 }
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     if (dt_contratos.SelectedRows.Count > 0)
     {
         GUI.ContratoDetalle cd = new ContratoDetalle(dt_contratos.SelectedRows[0]);
         cd.ShowDialog();
         Cargar();
     }
     else
     {
         MessageBox.Show("Seleccione un contrato");
     }
 }