void GetNewLordWord() { //Ramdomize the displayed phrase LordsWords LordsWords = new LordsWords(); Random rand = new Random(); int phrase = rand.Next(LordsWords.words.Length); lordsWord.Text = LordsWords.HearOurLord(phrase); TileUpdate(); }
private void lordsImage_Tap(object sender, System.Windows.Input.GestureEventArgs e) { //Handling the Eastter Egg lordsWord.Text = "DON'T DARE TOUCHING ME!"; eggCount += 1; if (eggCount == 50) { Random rand = new Random(); int image = rand.Next(0, 3); egg.Visibility = System.Windows.Visibility.Visible; lordsWord.Visibility = System.Windows.Visibility.Collapsed; LordsWords LordsWords = new LordsWords(); egg.Source = new BitmapImage(new Uri(LordsWords.EasterEgg(image), UriKind.Relative)); } }
private void lordsImage_Tap(object sender, System.Windows.Input.GestureEventArgs e) { //Handling the Eastter Egg lordsWord.Text = "DON'T DARE TOUCHING ME!"; eggCount += 1; if (eggCount == 50) { Random rand = new Random(); int image = rand.Next(0, 3); egg.Visibility = System.Windows.Visibility.Visible; lordsWord.Visibility = System.Windows.Visibility.Collapsed; LordsWords LordsWords = new LordsWords(); egg.Source = new BitmapImage(new Uri(LordsWords.EasterEgg(image),UriKind.Relative)); } }