示例#1
0
        private void carregarConfigs(int id)
        {
            DAO dao = new DAO();

            config = dao.GetConfig(id);

            if (config != null)
            {
                txtDefineSolucao.Text = config.SolucaoMax.ToString();
                txtCrossover.Text = config.TaxaCrossover.ToString();
                txtMutacao.Text = config.TaxaMutacao.ToString();
                txtPopulacao.Text = config.TotalPopulacao.ToString();
                txtGeracoes.Text = config.TotalGeracao.ToString();
                config.IdConfig = id;
            }
        }