Example #1
0
        public Listener(MainPanel panel)
        {
            CommandOutput    = panel.CommandOutputBox;
            LogOutput        = panel.LogText;
            _commandListener = new CommandListener();

            _commandListener.AddCommand(new Xana());
            _commandListener.AddCommand(new LW());
            _commandListener.AddCommand(new Aelita());

            //Ensure Help command is always the last command to be added to the listener
            List <Command> commands = _commandListener.GetCommands();

            _commandListener.AddCommand(new Help(ref commands));
        }