public static void ShowDetail(Organism organism) { var form = new SolutionDetailForm(); form.Text = organism.Solution.CostTotal.ToString(); form.lblInspirationals.Text = string.Join(Environment.NewLine, organism.GetNames()); form.Show(); }
private void lvSolutions_ItemActivate(object sender, EventArgs e) { if (lvSolutions.SelectedItems.Count == 0) { return; } SolutionDetailForm.ShowDetail((Organism)lvSolutions.SelectedItems[0].Tag); }