コード例 #1
0
        private void textBox1_TextChanged_1(object sender, EventArgs e)
        {
            AuxiliaryFunc af = new AuxiliaryFunc();

            if (af.TextIsNum(textBox1.Text))
            {
                k = Convert.ToInt32(textBox1.Text);
            }
        }
コード例 #2
0
        private void textBox6_TextChanged(object sender, EventArgs e)
        {
            AuxiliaryFunc af2 = new AuxiliaryFunc();

            if (af2.TextIsNum(textBox6.Text))
            {
                Config.MaxWavelen = Convert.ToInt32(textBox6.Text);
            }
        }
コード例 #3
0
        private void textBox4_TextChanged(object sender, EventArgs e)
        {
            AuxiliaryFunc af = new AuxiliaryFunc();

            if (af.TextIsNum(textBox4.Text))
            {
                Presolution.MaxThreshold = Convert.ToInt32(textBox4.Text);
            }
        }
コード例 #4
0
        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();
        }