private void button1_Click(object sender, RoutedEventArgs e)
 {
     //var login = new login();
     //login.Show();
     var facetrackmainwindow = new FaceTracking3D.MainWindow();
     facetrackmainwindow.Show();
     this.Close();
 }
Пример #2
0
        private void SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
        {
            const double ConfidenceThreshold = 0.3;

            label1.Content = "loaded3333";
            if (e.Result.Confidence >= ConfidenceThreshold)
            {
                if (e.Result.Semantics.Value.ToString() == "PLAY")
                {
                    label1.Content = "Got!";
                    var facetrack = new FaceTracking3D.MainWindow();
                    facetrack.Show();
                    this.Close();
                }
            }
        }