Esempio n. 1
0
        /// <summary>
        /// Edits the cap room available to all teams.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void uxEditCapRoom_Click(object sender, EventArgs e)
        {
            CapEditor capEditor = new CapEditor();

            if (capEditor.ShowDialog() == DialogResult.OK)
            {
                _mflController.SetCapInformation(capEditor.CapData);
                SetTeam();
            }
        }
Esempio n. 2
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");
            }
        }