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); }
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); }