예제 #1
0
        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();
        }
예제 #2
0
        private void lvSolutions_ItemActivate(object sender, EventArgs e)
        {
            if (lvSolutions.SelectedItems.Count == 0)
            {
                return;
            }

            SolutionDetailForm.ShowDetail((Organism)lvSolutions.SelectedItems[0].Tag);
        }