Ejemplo n.º 1
0
        protected virtual void OnExecuted(DataExecutionContext context)
        {
            var e = this.Executed;

            if (e != null)
            {
                e(this, new DataExecutedEventArgs(context));
            }
        }
Ejemplo n.º 2
0
        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)
 {
 }