public DetallesTutor(int ID, DetallesCandidato Dtc)
 {
     InitializeComponent();
     this.ID = ID;
     this.Dtc = Dtc;
 }
 private void Detalles_Click(object sender, EventArgs e)
 {
     int pos = 0;
     try
     {
         pos = dataGridView1.CurrentCell.RowIndex;
         DetallesCandidato dcn = new DetallesCandidato((int)dataGridView1[0, pos].Value, this);
         dcn.MdiParent = this.MdiParent;
         dcn.Show();
         this.Dispose();
     }
     catch
     {
         MessageBox.Show("Elija a alguien de la tabla");
         return;
     }
 }
 public DetallesRepresentante(int Id, DetallesCandidato dCand)
 {
     InitializeComponent();
     this.Id = Id;
     this.dCand = dCand;
 }