public void SetAppendValue(int value) { if (OnAppendValueChange != null) { var args = new ValueChanageEventArgs(AppendValue, value, value); OnAppendValueChange(this, args); AppendValue = args.FinalValue; OnValueChange(this, new EventArgs()); } else { AppendValue = value; } }
public void SetRate(int value) { if (OnRateChange != null) { var args = new ValueChanageEventArgs(Rate, value, value); OnRateChange(this, args); Rate = args.FinalValue; OnValueChange(this, new EventArgs()); } else { Rate = value; } }
public void SetBaseValue(int value) { if (OnBaseValueChange != null) { var args = new ValueChanageEventArgs(BaseValue, value, value); OnBaseValueChange(this, args); BaseValue = args.FinalValue; OnValueChange(this, new EventArgs()); } else { BaseValue = value; } }