Ejemplo n.º 1
0
        public virtual void CommandHandler(Object sender, CommandEventArgs e)
        {
            ActionContext context = new ActionContext(e)
            {
                Sender = sender, Origin = this
            };

            WebManager.ExecuteAction(context);
        }
Ejemplo n.º 2
0
            public override void Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
            {
                var selectActionArgs = new SelectEventArgs()
                {
                    DataSourceView = UnderlyingView, SelectArgs = arguments
                };

                selectActionArgs.Callback = delegate(IEnumerable data) {
                    selectActionArgs.Data = data;
                    callback(data);
                };
                WebManager.ExecuteAction(
                    new ActionContext(
                        selectActionArgs
                        )
                {
                    Origin = ActionDS.ActionSourceControl ?? ActionDS.NamingContainer, Sender = ActionDS
                });
            }
Ejemplo n.º 3
0
 protected void PerformAction(ActionContext context, DataSourceViewOperationCallback callback)
 {
     WebManager.ExecuteAction(context);
 }