private void button2_Click(object sender, EventArgs e) { int error = 0; Training_Form TF = new Training_Form(this, ref error); if (error == 0) { TF.Show(); } }
private void button1_Click(object sender, EventArgs e) { //add face data int error = 0; Training_Form tr1 = new Training_Form(this, ref error, textBox1.Text); if (error == 0) { tr1.Show(); } }
/*public Form1(Main_menu mm) * { * InitializeComponent(); * * Recognition.LoadData(Application.StartupPath + "\\TrainedFaces"); * }*/ //Open training form and pass this private void trainToolStripMenuItem_Click(object sender, EventArgs e) { //Stop Camera stop_capture(); //OpenForm int error = 0; Training_Form TF = new Training_Form(this, ref error); if (error == 0) { TF.Show(); } }