Пример #1
0
        protected int OnCounted(ICondition condition, string includes, int result)
        {
            var args = new DataCountedEventArgs(this.Name, condition, includes, result);

            this.OnCounted(args);
            return(args.Result);
        }
Пример #2
0
        protected virtual void OnCounted(DataCountedEventArgs args)
        {
            var e = this.Counted;

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