protected void PerformAction(ActionContext context, DataSourceViewOperationCallback callback) { WebManager.ExecuteAction(context); }
public override void Insert(IDictionary values, DataSourceViewOperationCallback callback) { var context = new ActionContext( new InsertEventArgs() { DataSourceView = UnderlyingView, Callback = callback, Values = values } ) { Origin = ActionDS.ActionSourceControl ?? ActionDS.NamingContainer, Sender = ActionDS }; PerformAction(context, callback); }
public override void Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) { var context = new ActionContext( new UpdateEventArgs() { DataSourceView = UnderlyingView, Callback = callback, Values = values, OldValues = oldValues, Keys = keys } ) { Origin = ActionDS.ActionSourceControl ?? ActionDS.NamingContainer, Sender = ActionDS }; PerformAction(context, callback); }
public virtual void CommandHandler(Object sender, CommandEventArgs e) { ActionContext context = new ActionContext(e) { Sender = sender, Origin = this }; WebManager.ExecuteAction(context); }