private void button1_Click(object sender, EventArgs e)
 {
     _jadro.AktualizujConfig(textBoxCena.Text, 1);
     TopMost = false;
     if (_poc == 0)
     {
         _refreshovaciCas = int.Parse(textBoxRefresh.Text);
         var refreshovacieVlakno = new Thread(WorkThreadFunction);
         refreshovacieVlakno.Start();
         button1.Text = @"Koniec";
         _poc         = 1;
     }
     else
     {
         ZastavRefresh();
         button1.Text = @"Start";
         Console.WriteLine(_pocetLoad + "  ---  " + DateTime.Now);
         _poc = 0;
     }
 }
 private void button1_Click(object sender, System.EventArgs e)
 {
     _jadro.AktualizujConfig(double.Parse(textBoxVhod0.Text, NumberStyles.Any, CultureInfo.InvariantCulture) * 100, 7);
     _jadro.AktualizujConfig(double.Parse(textBoxVhod5.Text, NumberStyles.Any, CultureInfo.InvariantCulture) * 100, 8);
     _jadro.AktualizujConfig(double.Parse(textBoxVhod10.Text, NumberStyles.Any, CultureInfo.InvariantCulture) * 100, 9);
     _jadro.AktualizujConfig(double.Parse(textBoxVhod25.Text, NumberStyles.Any, CultureInfo.InvariantCulture) * 100, 10);
     _jadro.AktualizujConfig(double.Parse(textBoxVhod50.Text, NumberStyles.Any, CultureInfo.InvariantCulture) * 100, 11);
     _jadro.AktualizujConfig(double.Parse(textBoxVhodDef.Text, NumberStyles.Any, CultureInfo.InvariantCulture) * 100, 12);
     _jadro.AktualizujConfig(double.Parse(textBoxPocetMiest130.Text, NumberStyles.Any, CultureInfo.InvariantCulture) * 100, 13);
     _jadro.AktualizujConfig(double.Parse(textBoxPocetMiest110.Text, NumberStyles.Any, CultureInfo.InvariantCulture) * 100, 14);
     _jadro.AktualizujConfig(double.Parse(textBoxPocetMiest100.Text, NumberStyles.Any, CultureInfo.InvariantCulture) * 100, 15);
     _jadro.AktualizujConfig(double.Parse(textBoxPocetMiest90.Text, NumberStyles.Any, CultureInfo.InvariantCulture) * 100, 16);
     _jadro.AktualizujConfig(double.Parse(textBoxPocetMiestDef.Text, NumberStyles.Any, CultureInfo.InvariantCulture) * 100, 17);
     _jadro.AktualizujConfig(textBoxNP.Text, 18);
     _jadro.AktualizujConfig(textBoxMinMinut.Text, 19);
     _jadro.AktualizujConfig(textBoxMaxMinut.Text, 20);
     Close();
 }
Exemple #3
0
 private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
 {
     _jadro.AktualizujConfig(dateTimePicker1.Value, 0);
 }