/// <summary> /// Wyświetlanie wyniku komiwojażera - BnB. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonSalesmanBnB_Click(object sender, EventArgs e) { if (salesmanBnB != null) { FormDisplay fD = new FormDisplay(salesmanBnB.ToString()); fD.Show(); } else { MessageBox.Show("Nie ma czego wyświetlać!", "Błąd", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
/// <summary> /// Wyświetlanie wszystkich wyników - komiwjoażer. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonSalesmanAll_Click(object sender, EventArgs e) { if (salesmanBnB != null) { FormDisplay fD = new FormDisplay(salesmanBnB.ToString()); fD.Show(); } if (salesmanLocalSearch != null) { FormDisplay fD = new FormDisplay(salesmanLocalSearch.ToString()); fD.Show(); } if (salesmanGenetic != null) { FormDisplay fD = new FormDisplay(salesmanGenetic.ToString()); fD.Show(); } }
/// <summary> /// Wyświetlanie wczytanych danych. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonDisplayData_Click(object sender, EventArgs e) { FormDisplay fD = new FormDisplay(salesmanData.ToString()); fD.Show(); }