public void Penalty(int delta) { SalaryEventArgs e = new SalaryEventArgs(delta); OnDecreaseSalary(e); }
public void RaiseSalary(int delta) { SalaryEventArgs e = new SalaryEventArgs(delta); OnIncreaseSalary(e); }
public void Penalty(object sender, SalaryEventArgs e) { CurrentSalary -= e._delta * 0.5f; }
public virtual void OnDecreaseSalary(SalaryEventArgs e) { Volatile.Read(ref DecreaseSalary)?.Invoke(this, e); }
public void RaiseSalary(object sender, SalaryEventArgs e) { CurrentSalary += e._delta * 0.5f; }