Пример #1
0
 protected void PerformAction(ActionContext context, DataSourceViewOperationCallback callback)
 {
     WebManager.ExecuteAction(context);
 }
Пример #2
0
 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);
 }
Пример #3
0
 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);
 }
Пример #4
0
 public virtual void CommandHandler(Object sender, CommandEventArgs e)
 {
     ActionContext context = new ActionContext(e) { Sender = sender, Origin = this };
     WebManager.ExecuteAction(context);
 }