Esempio n. 1
0
        public void Add(decimal amount, DateTime date)
        {
            IncomeAddEventArgs args = new IncomeAddEventArgs();

            args.Amount = amount;
            args.Date   = date;
            OnProgress(args);
        }
Esempio n. 2
0
        protected virtual void OnProgress(IncomeAddEventArgs e)
        {
            EventHandler <IncomeAddEventArgs> handler = incomeReached;

            if (handler != null)
            {
                handler(this, e);
            }
        }