コード例 #1
0
 private void FillMagicComboBoxes()
 {
     for (int i = 0; i < Constants.AbilitiesLength(); i++)
     {
         oMagicAbilityComboBox.Items.Add(Constants.Ability(i));
     }
 }
コード例 #2
0
        private void FillWeaponComboBoxes()
        {
            for (int i = 0; i < Constants.AbilitiesLength(); i++)
            {
                oWeaponsAbilityComboBox.Items.Add(Constants.Ability(i));
            }

            for (int i = 0; i < Constants.DamageTypeLength(); i++)
            {
                oWeaponsDamageTypeComboBox.Items.Add(Constants.DamageType(i));
            }

            for (int i = 0; i < Constants.WeaponListLength(); i++)
            {
                oWeaponNameComboBox.Items.Add(Constants.WeaponList(i));
            }
        }