Arguments used for changing parameters
Inheritance: System.EventArgs
コード例 #1
0
 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);
     }
 }
コード例 #2
0
 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);
 }