public BotTerminalViewModel(IRobotConnection Connection)
        {
            model = new BotTerminalModel(Connection);

            //For keyboard bindings
            sendTerminalCommand = new TerminalDelegateCommand((x) => SendTerminalCommand(model.CurrentCommand));
            historyUpArrow      = new TerminalDelegateCommand((x) => LoadHistorySentenceUp());
            historyDownArrow    = new TerminalDelegateCommand((x) => LoadHistorySentenceDown());
        }
Exemple #2
0
        public BotTerminalViewModel(IRobotConnection Connection)
        {
            model = new BotTerminalModel(Connection);

            //For keyboard bindings
            sendTerminalCommand = new TerminalDelegateCommand((x) => SendTerminalCommand(model.CurrentCommand));
            historyUpArrow = new TerminalDelegateCommand((x) => LoadHistorySentenceUp());
            historyDownArrow = new TerminalDelegateCommand((x) => LoadHistorySentenceDown());
        }