private (string question, string answer, string transcription) FindNeedCardData(TypesOfStudy typeOfTranslation, Random rand) { userInteractor.ClearWindow(); var num = rand.Next(flashcards.Count()); if (typeOfTranslation == TypesOfStudy.fromOriginalToForeign) { return(flashcards[num].BackOrOriginalWord, flashcards[num].FrontOrForeignTranslation, flashcards[num].Transcription); } else { return(flashcards[num].FrontOrForeignTranslation, flashcards[num].BackOrOriginalWord, flashcards[num].Transcription); } }