protected virtual void OnExisted(DataExistenceContext context) { var e = this.Existed; if (e != null) { e(this, new DataExistedEventArgs(context)); } }
protected virtual bool OnExisting(DataExistenceContext context) { var e = this.Existing; if (e == null) { return(false); } var args = new DataExistingEventArgs(context); e(this, args); return(args.Cancel); }
protected virtual void OnExisted(DataExistenceContext context) { }
public DataExistingEventArgs(DataExistenceContext context) : base(context) { _cancel = false; }