コード例 #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;
        }
コード例 #2
0
 public Mapping(ConsoleKey key, KeyFunctionDTO keyFunctionDTO)
 {
     Key            = key;
     KeyFunctionDTO = keyFunctionDTO;
 }