Esempio n. 1
0
        public static void HanldeVerbalFormLoadedEvent(
            WordPair[] wordsArray, out int currentWordPairId, Label progressLabel,
            TextBox firstLanguageWordTextBox, TextBox secondLanguageWordTextBox)
        {
            new Random().Shuffle(wordsArray);

            currentWordPairId = wordsArray[0].Id;

            CommonFormService.SetProgressLabelText(progressLabel, wordsArray);

            WordPair firstWord = wordsArray.First();

            firstLanguageWordTextBox.Text  = firstLanguageWordTextBox.ReadOnly ? firstWord.FirstLanguageWord : String.Empty;
            secondLanguageWordTextBox.Text = secondLanguageWordTextBox.ReadOnly ? firstWord.SecondLanguageWord : String.Empty;
        }
Esempio n. 2
0
        public static void HanldeVerbalFormLoadedEvent(Button nextWordButton, WordPair[] wordsArray, out int currentWordPairId,
                                                       Label progressLabel, TextBox firstLanguageWordTextBox, TextBox secondLanguageWordTextBox)
        {
            new Random().Shuffle(wordsArray);

            nextWordButton.Select();

            currentWordPairId = wordsArray[0].Id;

            CommonFormService.SetProgressLabelText(progressLabel, wordsArray);

            WordPair firstWord = wordsArray.First();

            firstLanguageWordTextBox.Text  = firstWord.FirstLanguageWord;
            secondLanguageWordTextBox.Text = firstWord.SecondLanguageWord;
        }