public virtual void CommandHandler(Object sender, CommandEventArgs e) { ActionContext context = new ActionContext(e) { Sender = sender, Origin = this }; WebManager.ExecuteAction(context); }
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 }); }
protected void PerformAction(ActionContext context, DataSourceViewOperationCallback callback) { WebManager.ExecuteAction(context); }