コード例 #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (mydb.IsServerConnected())
     {
         Application.Idle -= ProcessFrame;
         Application.Idle -= runningFrame;
         ReleaseData();
         FormTrain frmTrain = new FormTrain(this, eigenRecog);
         frmTrain.Show();
         button1.Enabled = true;
         this.Hide();
     }
     else
     {
         MessageBox.Show("Database not connect.");
     }
 }
コード例 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (t != null)
            {
                Console.WriteLine(t.ThreadState);
                t.Abort();
                timer.Stop();
                timer.Close();
            }

            Application.Idle -= ProcessFrame;
            Application.Idle -= runningFrame;
            ReleaseData();
            FormTrain frmTrain = new FormTrain(this);

            frmTrain.Show();
            button1.Enabled = true;
            this.Hide();
        }
コード例 #3
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (mydb.IsServerConnected())
     {
         
         Application.Idle -= ProcessFrame;
         Application.Idle -= runningFrame;
         ReleaseData();
         FormTrain frmTrain = new FormTrain(this,eigenRecog);
         frmTrain.Show();
         button1.Enabled = true;
         this.Hide();
     }
     else
     {
         MessageBox.Show("Database not connect.");
     }
 }
コード例 #4
0
        private void button2_Click(object sender, EventArgs e)
        {
            if(t != null){

                Console.WriteLine(t.ThreadState);
                t.Abort();
                timer.Stop();
                timer.Close();
              
            }
            
            Application.Idle -= ProcessFrame;
            Application.Idle -= runningFrame;
            ReleaseData();
            FormTrain frmTrain = new FormTrain(this);
            frmTrain.Show();
            button1.Enabled = true;
            this.Hide();
        }