Esempio n. 1
0
        private void btnEndGame_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            _view.endPressed();

            SelectPage back = new SelectPage(_view.CurrentPlayer.Name);

            NavigationService.Navigate(back);
        }
 private void input_enter_pressed(object sender, KeyEventArgs e)
 {
     if ((e.Key == Key.Enter))
     {
         if (inputName.Text == "")
             return;
         else
         {
             _playerName = inputName.Text;
             app.Properties["userName"] = _playerName;
             SelectPage nextPage = new SelectPage(_playerName);
             this.NavigationService.Navigate(nextPage);
         }
     }
     else { return; }
 }
 private void input_enter_pressed(object sender, KeyEventArgs e)
 {
     if ((e.Key == Key.Enter))
     {
         if (inputName.Text == "")
         {
             return;
         }
         else
         {
             _playerName = inputName.Text;
             app.Properties["userName"] = _playerName;
             SelectPage nextPage = new SelectPage(_playerName);
             this.NavigationService.Navigate(nextPage);
         }
     }
     else
     {
         return;
     }
 }