Beispiel #1
0
        // MICROSOFT SPEECH PLATFORM

        private void BeginOrderBtn_Click(object sender, RoutedEventArgs e)
        {
            Sre.RecognizeAsyncCancel();
            Sre.UnloadAllGrammars();
            Sre.SpeechRecognized -= new EventHandler <SpeechRecognizedEventArgs>(Sre_SpeechRecognized);

            ChoosePizza       choosePizzaPage = new ChoosePizza();
            NavigationService nav             = NavigationService.GetNavigationService(this);

            nav.Navigate(choosePizzaPage);
        }
Beispiel #2
0
        private void NextPizzaBtn_Click(object sender, RoutedEventArgs e)
        {
            Sre.RecognizeAsyncCancel();
            Sre.UnloadAllGrammars();
            Sre.SpeechRecognized -= new EventHandler <SpeechRecognizedEventArgs>(Sre_SpeechRecognized);

            if (HomePage.OrderList.Count > 0)
            {
                HomePage.OnTheList++;
            }

            ChoosePizza       choosePizzaPage = new ChoosePizza();
            NavigationService nav             = NavigationService.GetNavigationService(this);

            nav.Navigate(choosePizzaPage);
        }