Ejemplo n.º 1
0
        public Mapping(Stack <ConsoleKey> availableKeys, KeyFunctionDTO keyFunctionDTO)
        {
            var currentKey      = availableKeys.Pop();
            var keyNameReplaced = String.Format(keyFunctionDTO.Instruction, currentKey);

            keyFunctionDTO.Instruction = keyNameReplaced;
            Key            = currentKey;
            KeyFunctionDTO = keyFunctionDTO;
        }
Ejemplo n.º 2
0
 public Mapping(ConsoleKey key, KeyFunctionDTO keyFunctionDTO)
 {
     Key            = key;
     KeyFunctionDTO = keyFunctionDTO;
 }