Beispiel #1
0
        private void _flush_Click(object sender, EventArgs e)
        {
            _generateGraph.Enabled = true;
            _insertGraph.Enabled   = true;
            _antsStart.Enabled     = false;
            _antsStart.Text        = "Папалзли";
            _generateGraph.Text    = "Сгенерировать граф";
            form_distances         = null;
            form_pheromones        = null;
            clickCounter           = 0;
            _flush.Enabled         = false;
            _distances.Enabled     = false;
            _pheromones.Enabled    = false;
            isPlacedByHand         = false;
            lbl_distance.Text      = "-";

            pictureBox1.Image       = null;
            graph                   = null;
            txtbox_numOfCities.Text = "";
            _alpha.Text             = "";
            _beta.Text              = "";
            _rho.Text               = "";
            _Q.Text                 = "";
            _numOfAnts.Text         = "";
            _numOfIterations.Text   = "";
        }
Beispiel #2
0
        private void _pheromones_Click(object sender, EventArgs e)
        {
            form_pheromones = new form_pheromonesTable(graph);

            form_pheromones.Show();
        }