コード例 #1
0
        protected virtual void OnSelected(DataSelectionContext context)
        {
            var e = this.Selected;

            if (e != null)
            {
                e(this, new DataSelectedEventArgs(context));
            }
        }
コード例 #2
0
        protected virtual void OnGetted(DataSelectionContext context)
        {
            var e = this.Getted;

            if (e != null)
            {
                e(this, new DataGettedEventArgs <TEntity>(context));
            }
        }
コード例 #3
0
        protected virtual bool OnGetting(DataSelectionContext context)
        {
            var e = this.Getting;

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

            var args = new DataGettingEventArgs <TEntity>(context);

            e(this, args);
            return(args.Cancel);
        }
コード例 #4
0
 protected virtual void OnSelected(DataSelectionContext context)
 {
 }