private void buttonFinish_Click(object sender, EventArgs e)
        {
            CameraCapture.Stop();
            Thread thread = new Thread(new ThreadStart(RunLoginForm));

            thread.Start();
            this.Close();
        }
 private void RunMainForm()
 {
     CameraCapture.Stop();
     Application.Run(new MainForm());
 }