protected virtual void OnExecuted(DataExecutionContext context)
        {
            var e = this.Executed;

            if (e != null)
            {
                e(this, new DataExecutedEventArgs(context));
            }
        }
        protected virtual bool OnExecuting(DataExecutionContext context)
        {
            var e = this.Executing;

            if (e == null)
            {
                return(false);
            }

            var args = new DataExecutingEventArgs(context);

            e(this, args);
            return(args.Cancel);
        }
 public DataExecutingEventArgs(DataExecutionContext context) : base(context)
 {
     _cancel = false;
 }
 protected virtual void OnExecuted(DataExecutionContext context)
 {
 }