Beispiel #1
0
        /// <summary>
        /// creates game and takes user to game statsheet
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CreateBTN_Click(object sender, RoutedEventArgs e)
        {
            Create_Game();
            GameProfileWindow gpw = new GameProfileWindow(callingWindow, myTeam, myGame, build);

            gpw.Show();
            this.Close();
        }
Beispiel #2
0
 /// <summary>
 /// takes user to statsheet of selected game
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ViewGameBTN_Click(object sender, RoutedEventArgs e)
 {
     if (myGame.HasAttributes())
     {
         GameProfileWindow tpw = new GameProfileWindow(this, myTeam, myGame, build);
         tpw.Show();
     }
     else
     {
         MessageBox.Show(SELECT_GAME_ERR);
     }
 }