public void AddModifier(StatAddRule modifier) { if (this.additions.Add(modifier)) { modifier.PropertyChanged += this.onModifierChanged; Notify("Value"); } }
public void RemoveModifier(StatAddRule modifier) { if (this.additions.Remove(modifier)) { modifier.PropertyChanged -= this.onModifierChanged; Notify("Value"); } }