private void button1_Click(object sender, RoutedEventArgs e) { GamePage.playerName = nametext.Text; if (nametext.Text != "") { NavigationService.Navigate(GamePage.GetUri()); } }
// Simple button Click event handler to take us to the second page private void Button_Click(object sender, RoutedEventArgs e) { NavigationService.Navigate(GamePage.GetUri()); }