Esempio n. 1
0
 private void button3_Click(object sender, EventArgs e)
 {
     met3.Clear();
     met3.Tag = "";
     var settings3 = GetSettings(new TurnirSelector(), new SelectionScreener());
     var calc3 = new SimpleCalculator(settings3);
     var d1 = DateTime.Now;
     var curve3V = calc3.Start();
     time3 = DateTime.Now.Subtract(d1);
     label14.Text = Math.Round(time3.TotalSeconds, 3).ToString(CultureInfo.InvariantCulture);
     met3 = zedGraphControl1.GraphPane.AddCurve("Метод3", new double[] { 0 }, new double[] { 0 }, Color.Green);
     foreach (var d in curve3V) { met3.AddPoint(d.Key, d.Value); }
     zedGraphControl1.AxisChange(); zedGraphControl1.RestoreScale(zedGraphControl1.GraphPane);
 }
Esempio n. 2
0
 private void button4_Click(object sender, EventArgs e)
 {
     met4.Clear();
     met4.Tag = "";
     var settings4 = GetSettings(new RuletteSelector(), new RandomScreeener());
     var calc4 = new SimpleCalculator(settings4);
     var d1 = DateTime.Now;
     var curve4V = calc4.Start();
     time4 = DateTime.Now.Subtract(d1);
     label15.Text = Math.Round(time4.TotalSeconds,3).ToString(CultureInfo.InvariantCulture);
     met4 = zedGraphControl1.GraphPane.AddCurve("Метод4", new double[] { 0 }, new double[] { 0 }, Color.Purple);
     foreach (var d in curve4V) { met4.AddPoint(d.Key, d.Value); }
     zedGraphControl1.AxisChange(); zedGraphControl1.RestoreScale(zedGraphControl1.GraphPane);
 }