コード例 #1
0
ファイル: Form1.cs プロジェクト: TwinkleMan/AntColony
        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   = "";
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: TwinkleMan/AntColony
        private void _pheromones_Click(object sender, EventArgs e)
        {
            form_pheromones = new form_pheromonesTable(graph);

            form_pheromones.Show();
        }