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; }
public Mapping(ConsoleKey key, KeyFunctionDTO keyFunctionDTO) { Key = key; KeyFunctionDTO = keyFunctionDTO; }