Esempio n. 1
0
        /// <summary>
        ///     Функция, вызывающая обработчик события выдачи денег
        /// </summary>
        /// <param name="e"></param>
        protected virtual void OnMoneyWithdrawn(MoneyWithdrawnEventArgs e)
        {
            var handler = MoneyWithdrawn;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Esempio n. 2
0
        /// <summary>
        ///     Добавить запись статистики
        /// </summary>
        /// <param name="balance"></param>
        /// <param name="userSum"></param>
        public void Add(decimal balance, decimal userSum)
        {
            var args = new MoneyWithdrawnEventArgs
            {
                Balance       = balance,
                UserSum       = userSum,
                WithdrawnTime = DateTime.Now
            };

            OnMoneyWithdrawn(args);
        }
Esempio n. 3
0
 /// <summary>
 ///     Функция, определяющая действие при выдаче денег
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void c_MoneyWithdrawn(object sender, MoneyWithdrawnEventArgs e)
 {
     _statsEntries.Add(e);
 }