Example #1
0
        void IInputStrategy.ReceiveIndication()
        {
            switch (FocusedSection)
            {
            case Section.WordSelector:
                FocusCycler.Stop();
                Controller.StartInputStrategy <WordSuggestionSelectorInput>();
                break;

            case Section.Keyboard:
                FocusCycler.Stop();
                Controller.StartInputStrategy <KeyboardRowSelectorInput>();
                break;

            case Section.Speak:
                string sentence = SentenceBuilder.Commit();
                TextToSpeech.Speak(sentence);
                break;

            default: throw new NotImplementedException(FocusedSection + "");
            }
        }