private void RefreshParameters()
{
foreach (Control ctrl in this.flowPanel.Controls)
{
if (ctrl is ParamBox)
{
var param = ctrl as ParamBox;
var property = typeof(Item).GetProperty(param.RpgAttribute);
if (property != null)
param.Value = (int)property.GetValue(this._item, null);
}
}
this.comboBoxConsumable.SelectedIndex = this._item.consumable ? 0 : 1;
this.comboBoxParameter.SelectedIndex = this._item.parameter_type;
}