Пример #1
0
        private void btnExecute_Click(object sender, EventArgs e)
        {
            try
            {
                AntCycle.TrailQuantity          = Convert.ToDouble(txtTrailQuantity.Text);
                AntCycle.TrailSignificance      = Convert.ToDouble(txtTrailSignificance.Text);
                AntCycle.VisibilitySignificance = Convert.ToDouble(txtVisibilitySignificance.Text);
                AntCycle.EvaporationCoeficient  = Convert.ToDouble(txtEvaporationCoeficient.Text);
                AntCycle.InitialTrail           = Convert.ToDouble(txtInitialTrail.Text);
                AntCycle.MaxCyclesNumber        = Convert.ToInt32(txtMaxCyclesNumber.Text);
                AntCycle.StagnationCyclesNumber = Convert.ToInt32(txtStagnationCycles.Text);
                ApplicationParameters.BeginDate = dateTimePicker1.Value;
            }
            catch
            {
                MessageBox.Show("Verifique se há valores inválidos");
            }
            AntCycle.executeCycle();
            ResultTable form = new ResultTable();

            form.Show();
            form.showTable();
        }