Ejemplo n.º 1
0
        //Need a private ConnectionViewModel here

        public VoiceViewModel(IRobotConnection Connection)
        {
            //Here we link up the send and receive logic with ConnectionViewModel
            model = new VoiceModel(Connection);

            //For keyboard bindings
            speakCommand     = new VoiceDelegateCommand((x) => SendCurrentSentence(model.CurrentSentence));
            historyUpArrow   = new VoiceDelegateCommand((x) => LoadHistorySentenceUp());
            historyDownArrow = new VoiceDelegateCommand((x) => LoadHistorySentenceDown());
        }
Ejemplo n.º 2
0
        //Need a private ConnectionViewModel here
        public VoiceViewModel(IRobotConnection Connection)
        {
            //Here we link up the send and receive logic with ConnectionViewModel
            model = new VoiceModel(Connection);

            //For keyboard bindings
            speakCommand = new VoiceDelegateCommand((x) => SendCurrentSentence(model.CurrentSentence));
            historyUpArrow = new VoiceDelegateCommand((x) => LoadHistorySentenceUp());
            historyDownArrow = new VoiceDelegateCommand((x) => LoadHistorySentenceDown());
        }