Пример #1
0
 private void RefreshDivisionTraitDescriptionList()
 {
     ArmyUnitDetailText.Text = "";
     foreach (KeyValuePair <String, int> trait in divisionSelectedUnitType.Traits)
     {
         ArmyUnitDetailText.Text = ArmyUnitDetailText.Text + TraitReference.GetFullTraitDescription(trait.Key, trait.Value) + "\r\n";
     }
 }
Пример #2
0
        private void RefreshTraitDescriptionList(object sender, EventArgs e)
        {
            UnitCreateTraitDetailText.Text = "";
            for (int row = 0; row < UnitTraitsTable.RowCount; row++)
            {
                TextBox       newTextBox = (TextBox)(UnitTraitsTable.Controls[TRAIT_NAME_CONTROL_PREFIX + row.ToString()]);
                NumericUpDown newNumeric = (NumericUpDown)(UnitTraitsTable.Controls[TRAIT_VALUE_CONTROL_PREFIX + row.ToString()]);
                String        name       = newTextBox.Text;
                int           value      = (int)newNumeric.Value;

                UnitCreateTraitDetailText.Text = UnitCreateTraitDetailText.Text + TraitReference.GetFullTraitDescription(name, value) + "\r\n";
            }
        }