Esempio n. 1
0
    public QWERTYTextGenerator(KeyboardQWERTY keyboard, QWERTYOptions options, int minLength = 5, int maxLength = 9)
    {
        Keyboard = keyboard;
        Options  = options;

        _minLength = minLength;
        _maxLength = maxLength;

        AssignCharactersArray();
    }
Esempio n. 2
0
    public void AssignCharactersArray(KeyboardQWERTY keyboard, QWERTYOptions options)
    {
        List <char> characters = new List <char>();

        if (options.HandType == QWERTYHandType.Both)
        {
            AssignHand(keyboard.LeftHand, options, characters);
            AssignHand(keyboard.RightHand, options, characters);
        }
        else if (options.HandType == QWERTYHandType.Left)
        {
            AssignHand(keyboard.LeftHand, options, characters);
        }
        else if (options.HandType == QWERTYHandType.Right)
        {
            AssignHand(keyboard.RightHand, options, characters);
        }

        _charactersArray = characters.ToArray();
    }