private void ParamBoxOnValueChanged(object sender, ParameterEventArgs e) { if (SuppressEvents) return; var paramBox = sender as ParamBox; if (paramBox != null) { var value = (int)paramBox.Value; var propertyName = paramBox.RpgAttribute; typeof(Item).GetProperty(propertyName).SetValue(this._item, value, null); } }
private void ParamBoxOnValueChanged(object sender, ParameterEventArgs e) { if (SuppressEvents) return; var paramBox = sender as ParamBox; var value = (int)paramBox.Value; string propertyName = paramBox.RpgAttribute; typeof(Armor).GetProperty(propertyName).SetValue(this._armor, value, null); }