private void RegisterEnterFontEdit(object sender, KeyRoutedEventArgs e) { if (!string.IsNullOrEmpty(inputTextbox.Text) && e.Key == Windows.System.VirtualKey.Enter) { inputLetter = char.Parse(inputTextbox.Text); inputTextbox.Text = ""; inputRecived = true; } lettArr = Letters.ReturnArrLetter(inputLetter); }
private void RepeatString() { if (WordInput) { if (CharPrinted) { var nextLetter = (char)str.Dequeue(); nextLetter = ChecksForSpecChar(nextLetter); LetterArr = Letters.ReturnArrLetter(nextLetter); CharPrinted = false; } if (CharPrinted == false) { MoveLetters.InsertLine(Arr, LetterArr, ref counter, ref CharPrinted); } if (str.Count == 0 && CharPrinted == true) { WordInput = false; return; } } if (str.Count == 0 && !string.IsNullOrEmpty(stringtoRepeat)) { countToClearScreen++; if (countToClearScreen == row + 10) { str = stringtoRepeat.ToQueue(); WordInput = true; CharPrinted = true; countToClearScreen = 0; } } }
/// <summary> /// No repeat one time pass string /// </summary> private void RepeatNOtChecked() { if (WordInput) { if (CharPrinted) { if (str.Count > 0) { var nextLetter = (char)str.Dequeue(); nextLetter = ChecksForSpecChar(nextLetter); LetterArr = Letters.ReturnArrLetter(nextLetter); CharPrinted = false; } else { WordInput = false; return; } } MoveLetters.InsertLine(Arr, LetterArr, ref counter, ref CharPrinted); } }