public void Add(decimal amount, DateTime date) { IncomeAddEventArgs args = new IncomeAddEventArgs(); args.Amount = amount; args.Date = date; OnProgress(args); }
protected virtual void OnProgress(IncomeAddEventArgs e) { EventHandler <IncomeAddEventArgs> handler = incomeReached; if (handler != null) { handler(this, e); } }