Exemple #1
0
        /// <summary>
        /// Edits the cap hit of the current team.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void uxEditCapHit_Click(object sender, EventArgs e)
        {
            FranchiseDto franchise = _mflController.GetFranchiseInformation(FranchiseId);

            if (franchise != null)
            {
                CapEditor capEditor = new CapEditor(franchise);
                if (capEditor.ShowDialog() == DialogResult.OK)
                {
                    franchise.CapHit = capEditor.CapData;
                    SetTeam();
                }
            }
            else
            {
                MessageBox.Show(@"Error - Invalid NFLTeam");
            }
        }