private void ToolStripBtnComplete_Click(object sender, EventArgs e) { toolStripBtnComplete.Enabled = false; toolStripBtnSteps.Enabled = false; toolStripBtnNextStep.Enabled = false; toolStripBtnNextIteration.Enabled = false; toolStripBtnViewChess.Enabled = false; int mejor = controller.completo(Dato, this); individuoDataGridView.Rows[mejor].Selected = true; individuoDataGridView.CurrentCell = individuoDataGridView.Rows[mejor].Cells[0]; individuoDataGridView.FirstDisplayedScrollingRowIndex = individuoDataGridView.SelectedRows[0].Index; solucionBindingSource.DataSource = individuoBindingSource.Current; toolStripBtnComplete.Enabled = true; toolStripBtnSteps.Enabled = true; toolStripBtnViewChess.Enabled = true; MessageBox.Show("El mejor individuo es el: " + (mejor + 1), "SOLUCION", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); controller.abrirTablero(this); }