//This sets the maximum value of each attribute to 20 and the minimum value as 0
        private void AttributesForm_Load(object sender, EventArgs e)
        {
            ManagerCreation ManagerCreate = new ManagerCreation();

            ManagerCreate.Close();

            AttackCoaching.Value       = controller.GameObjects.ManagerEntity.Attacking;
            DefCoaching.Value          = controller.GameObjects.ManagerEntity.Defending;
            GoalkeepingCoaching.Value  = controller.GameObjects.ManagerEntity.GoalKeeping;
            MentalCoaching.Value       = controller.GameObjects.ManagerEntity.Mental;
            TacticalCoaching.Value     = controller.GameObjects.ManagerEntity.Tactical;
            YouthDevelopment.Value     = controller.GameObjects.ManagerEntity.YouthDev;
            TechnicalCoaching.Value    = controller.GameObjects.ManagerEntity.Technical;
            FitnessCoaching.Value      = controller.GameObjects.ManagerEntity.Fitness;
            Motivating.Value           = controller.GameObjects.ManagerEntity.Motivating;
            DeterminationManager.Value = controller.GameObjects.ManagerEntity.Determination;
            PlayerKnowledge.Value      = controller.GameObjects.ManagerEntity.PlayerKnowledge;
            LvlOfDiscipline.Value      = controller.GameObjects.ManagerEntity.Discpline;
            Adaptablity.Value          = controller.GameObjects.ManagerEntity.Adaptability;
            WorkRateManager.Value      = controller.GameObjects.ManagerEntity.WorkRateManager;
            MediaHandling.Value        = controller.GameObjects.ManagerEntity.MediaHandling;
            //This sets each progress bar to the equivalence of the value of the value pegged to the Manager's attribute value
            ValidateTaxCredit();
        }
예제 #2
0
 private void ButNewGame_Click(object sender, EventArgs e)
 {
     ManagerCreation fCreate = new ManagerCreation();
     fCreate.Show(); this.Hide();
     this.Hide();
 }