Пример #1
0
        private void frmPlayGuesstheWord_Load(object sender, EventArgs e)
        {
            TextFile tf = new TextFile();
            tf.getTextFile();

            words = tf.text.Split(' ', '\n');

            lblName.Text = "User: "******"Score: " + score.ToString();

            if (words.ElementAt(indexNum) == "")
            {
                indexNum++;
            }

            hiddenWord = words.ElementAt(indexNum);

            writeNewWord(hiddenWord);
        }
Пример #2
0
        private void PlayConundrum_Load(object sender, EventArgs e)
        {
            TextFile tf = new TextFile();
            tf.getTextFile();

            words = tf.text.Split(' ', '\n');

            lblPlayer.Text = "User: "******"Score: " + score.ToString();

            if (words.ElementAt(indexNum) == "")
            {
                indexNum++;
            }

            hiddenWord = words.ElementAt(indexNum);

            lblWord.Text = shuffle(hiddenWord.ToCharArray(), shuffleTimes);
        }