private void button1_Click(object sender, EventArgs e) { FruitsTree.insertChildrenCount(FruitsTree.root); VegetableTree.insertChildrenCount(VegetableTree.root); birdTree.insertChildrenCount(birdTree.root); elementsTree.insertChildrenCount(elementsTree.root); animalTree.insertChildrenCount(animalTree.root); int randTreeValue = randomNumber(0, 4); if (randTreeValue == 1) { randword = FruitsTree.randomNode(FruitsTree.root); } else if (randTreeValue == 2) { randword = VegetableTree.randomNode(VegetableTree.root); } else if (randTreeValue == 3) { randword = birdTree.randomNode(birdTree.root); } else if (randTreeValue == 4) { randword = elementsTree.randomNode(elementsTree.root); } else { randword = animalTree.randomNode(animalTree.root); } randword = randword.ToUpper(); dashdoword = produceDashes(randword); //MessageBox.Show(dashdoword); GamePage gamepage = new GamePage(dashdoword, randword); gamepage.Show(); }
private void button1_Click(object sender, EventArgs e) { GamePage gamepage = new GamePage(); gamepage.Show(); }