예제 #1
0
        protected virtual void OnDeleted(DataDeletionContext context)
        {
            var e = this.Deleted;

            if (e != null)
            {
                e(this, new DataDeletedEventArgs(context));
            }
        }
예제 #2
0
        protected virtual bool OnDeleting(DataDeletionContext context)
        {
            var e = this.Deleting;

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

            var args = new DataDeletingEventArgs(context);

            e(this, args);
            return(args.Cancel);
        }
예제 #3
0
 public DataDeletingEventArgs(DataDeletionContext context) : base(context)
 {
     _cancel = false;
 }
 protected virtual void OnDeleted(DataDeletionContext context)
 {
 }