private void BtnLimpar_Click(object sender, EventArgs e)
        {
            count_exec             = 0;
            pointCount             = 0;
            i                      = 0;
            iTemp                  = 0;
            evolucoes              = 0;
            lbEvolucoes.Text       = "00";
            lbMenorDistancia.Text  = "00";
            lbMenorDistancia2.Text = "00";

            ConfigurationGA.tamPopulacao = 0;
            TablePoints.clear();
            pop = null;

            lbQtdeCidades.Text = "--";

            btnCriarPop.Enabled = false;
            btnExecutar.Enabled = false;
            btnLimpar.Enabled   = false;

            g.Clear(Color.White);
            count = 0;

            mediaPopulacao.Clear();
            zedMedia.Refresh();
        }
예제 #2
0
        private void BtnClean_Click(object sender, EventArgs e)
        {
            ConfigurationGA.sizePopulation = 0;
            count      = 0;
            pointCount = 0;

            TablePoints.clear();
            pop = null;
            lbQtyCities.Text  = "--";
            lbDifficulty.Text = "0";

            i                = 0;
            itemp            = 0;
            evolucoes        = 0;
            lbEvolucoes.Text = "00";

            btnExecute.Enabled            = false;
            btnPopulationGenerate.Enabled = false;
            btnClean.Enabled = false;
            g.Clear(Color.White);

            mediaPopulation.Clear();
            zedMedia.Refresh();
        }