private void textBox1_TextChanged_1(object sender, EventArgs e) { AuxiliaryFunc af = new AuxiliaryFunc(); if (af.TextIsNum(textBox1.Text)) { k = Convert.ToInt32(textBox1.Text); } }
private void textBox6_TextChanged(object sender, EventArgs e) { AuxiliaryFunc af2 = new AuxiliaryFunc(); if (af2.TextIsNum(textBox6.Text)) { Config.MaxWavelen = Convert.ToInt32(textBox6.Text); } }
private void textBox4_TextChanged(object sender, EventArgs e) { AuxiliaryFunc af = new AuxiliaryFunc(); if (af.TextIsNum(textBox4.Text)) { Presolution.MaxThreshold = Convert.ToInt32(textBox4.Text); } }
private void button3_Click(object sender, EventArgs e) { timer1.Stop(); AuxiliaryFunc.percent = 10; AuxiliaryFunc af = new AuxiliaryFunc(); af.FileList(out TestList, Config.TestFolder, checkedListBox1); af.FileList(out TrainList, Config.TrainFolder, checkedListBox2); Thread newthread = new Thread(new ThreadStart(Function)); Thread processthread = new Thread(new ThreadStart(RunTask)); newthread.Start(); processthread.Start(); }