Esempio n. 1
0
        private void UpdateDataSources()
        {
            foreach (ComboBoxWithDefault itemComboBox in
                     new ComboBoxWithDefault[] { rightHandComboBox, leftHandComboBox, headComboBox, bodyComboBox, accessoryComboBox, warTrophyComboBox })
            {
                itemComboBox.BindingContext = new BindingContext();
                itemComboBox.DataSource     = Item.GetEventItems(ourContext);
            }

            primarySkillComboBox.BindingContext    = new BindingContext();
            primarySkillComboBox.DataSource        = new List <SkillSet>(SkillSet.GetEventSkillSets(ourContext).Values);
            secondaryActionComboBox.BindingContext = new BindingContext();
            secondaryActionComboBox.DataSource     = new List <SkillSet>(SkillSet.GetEventSkillSets(ourContext).Values);
            foreach (ComboBoxWithDefault abilityComboBox in
                     new ComboBoxWithDefault[] { reactionComboBox, supportComboBox, movementComboBox })
            {
                abilityComboBox.BindingContext = new BindingContext();
                abilityComboBox.DataSource     = AllAbilities.GetEventAbilities(ourContext);
            }

            faithComboBox.BindingContext   = new BindingContext();
            faithComboBox.DataSource       = zeroTo100;
            braveryComboBox.BindingContext = new BindingContext();
            braveryComboBox.DataSource     = zeroTo100;
            dayComboBox.DataSource         = zeroTo31;
            levelComboBox.DataSource       = levelStrings;
            experienceComboBox.DataSource  = byteNumberWithRandom;

            spriteSetComboBox.DataSource       = SpriteSet.GetSpriteSets(ourContext);
            specialNameComboBox.DataSource     = SpecialName.GetSpecialNames(ourContext);
            jobComboBox.DataSource             = AllJobs.GetDummyJobs(ourContext);
            monthComboBox.DataSource           = Enum.GetValues(typeof(Month));
            teamColorComboBox.DataSource       = Enum.GetValues(typeof(TeamColor));
            facingDirectionComboBox.DataSource = Enum.GetValues(typeof(Facing));
            preRequisiteJobComboBox.DataSource = Enum.GetValues(typeof(PreRequisiteJob));
        }