Esempio n. 1
0
        /*
         * private void EndDraftButton_Click(object sender, EventArgs e)
         *
         * NAME:
         *  EndDraftButton_Click
         * SYNOPSIS:
         *
         *  private void EndDraftButton_Click(object sender, EventArgs e);
         *    sender --> reference to object that raised event.
         *    e --> event data
         *
         * DESCRIPTION:
         *
         *  Event Handler for the EndDraftButton, ends the drafting
         *  phase and shows the home page
         *
         * RETURNS:
         *  None
         * AUTHOR:
         *  Gabriel Uy
         * DATE:
         *  07/12/2020
         */
        private void EndDraftButton_Click(object sender, EventArgs e)
        {
            Hide();
            ShowGame showGame = new ShowGame(_game, player1, cpu1, cpu2, cpu3, _season);

            showGame.Show();
        }
Esempio n. 2
0
 /*
  * private void BackFromTrading_Click(object sender, EventArgs e)
  *
  * NAME:
  *  BackFromTrading_Click
  * SYNOPSIS:
  *
  *  private void BackFromTrading_Click(object sender, EventArgs e);
  *  sender --> reference to object that raised event.
  *  e --> event data
  *
  * DESCRIPTION:
  *
  *  Button event handler to return from the Trading page back to
  *  the seasons home page.
  *
  * RETURNS:
  *  None
  * AUTHOR:
  *  Gabriel Uy
  * DATE:
  *  07/27/2020
  */
 private void BackFromTrading_Click(object sender, EventArgs e)
 {
     Hide();
     _showGame.Show();
     TradeButton.Enabled = false;
     TradeResultBox.Items.Clear();
 }
 /*
  * private void BackFromFreeAgents_Click(object sender, EventArgs e)
  *
  * NAME:
  *  BackFromFreeAgents_Click
  * SYNOPSIS:
  *
  *    private void BackFromFreeAgents_Click(object sender, EventArgs e);
  *    sender --> reference to object that raised event.
  *    e --> event data
  *
  * DESCRIPTION:
  *
  *  Hides the free agent page and shows the home page
  *
  * RETURNS:
  *  None
  * AUTHOR:
  *  Gabriel Uy
  * DATE:
  *  07/08/2020
  */
 private void BackFromFreeAgents_Click(object sender, EventArgs e)
 {
     Hide();
     _showGame.Show();
 }
 /*
  * private void BackFromTeamRoster_Click(object sender, EventArgs e)
  *
  * NAME:
  *  BackFromTeamRoster_Click
  * SYNOPSIS:
  *
  *  private void BackFromTeamRoster_Click(object sender, EventArgs e);
  *  sender --> reference to object that raised event.
  *  e --> event data
  *
  * DESCRIPTION:
  *
  *  Button event handler to return from the Team Roster page back to
  *  the seasons home page.
  *
  * RETURNS:
  *  None
  * AUTHOR:
  *  Gabriel Uy
  * DATE:
  *  07/08/2020
  */
 private void BackFromTeamRoster_Click(object sender, EventArgs e)
 {
     Hide();
     _showGame.Show();
 }