Beispiel #1
0
        private void SaveTestParametrs()
        {
            TestParametrs tmp = new TestParametrs
            {
                bets         = (int)numericBets.Value,
                btimes       = (int)numericBetTimes.Value,
                daniloCoeff  = double.Parse(textBoxCoeffMore.Text, System.Globalization.CultureInfo.InvariantCulture),
                p1p2x        = checkedListBox1.GetItemChecked(0),
                fora         = checkedListBox1.GetItemChecked(1),
                total        = checkedListBox1.GetItemChecked(2),
                moreBets     = checkBoxAll.Checked,
                noDraw       = checkBoxNoDraw.Checked,
                freshLine    = checkBoxFreshLine.Checked,
                daniloStyle  = radioButtonDanilich.Checked,
                Naverochku   = radioButtonNaverochku.Checked,
                ordinaryBets = radioButtonOrdinary.Checked,
                hoursFrom    = (int)numericHoursFrom.Value,
                hoursTo      = (int)numericHoursTo.Value
            };

            currentTestParametrs = tmp;
            for (int i = 0; i < Convert.ToInt32(textBoxMarksnumb.Text); i++)
            {
                testParametrs.Add(tmp);
            }
        }
Beispiel #2
0
 private void button3_Click_1(object sender, EventArgs e)
 {
     if (testParametrs.Count == 0)
     {
         SaveTestParametrs();
     }
     foreach (TestParametrs param in testParametrs)
     {
         currentTestParametrs = param;
         File.AppendAllText(@"file.txt", JsonConvert.SerializeObject(currentTestParametrs) + Environment.NewLine);
         PlaceBets(true);
         log.Info("###############################changing parametrs, continue autotest###################################################");
     }
 }
Beispiel #3
0
 public Form1()
 {
     InitializeComponent();
     checkedListBox1.SetItemChecked(0, true);
     checkedListBox1.SetItemChecked(1, true);
     checkedListBox1.SetItemChecked(2, true);
     infoWindow.Visible       = false;
     tabControlDanilo.Visible = false;
     log4net.Config.XmlConfigurator.Configure();
     testParametrs        = new List <TestParametrs>();
     currentTestParametrs = new TestParametrs();
     roiList            = new List <double>();
     rand               = new Random();
     this.ShowInTaskbar = true;
     log.Info("Form INIT");
 }