Exemple #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int time = Int32.Parse(textBoxMaxTime.Text);

            if (fileName != "")
            {
                string status = new TSP().StartTsp(time, fileName, false, 0);
                labelStatus.TextWrapping = TextWrapping.Wrap;
                labelStatus.Text         = status;
            }
        }
Exemple #2
0
        private void ButtonGenetic_Click(object sender, RoutedEventArgs e)
        {
            int time       = Int32.Parse(textBoxMaxTime.Text);
            int population = Int32.Parse(textBoxPopulaion.Text);

            if (fileName != "")
            {
                string status = new TSP().StartTsp(time, fileName, true, population);
                labelStatus.TextWrapping = TextWrapping.Wrap;
                labelStatus.Text         = status;
            }
        }