Ejemplo n.º 1
0
        internal ActionPostBack(
            bool forceFullPagePostBack, IEnumerable <UpdateRegionSet> updateRegions, string id, bool?forcePageDataUpdate, bool skipModificationIfNoChanges,
            Action firstModificationMethod, Func <PostBackAction> actionGetter, DataModification validationDm) : base(forceFullPagePostBack, id, forcePageDataUpdate)
        {
            this.updateRegions = updateRegions ?? new UpdateRegionSet[0];
            this.skipModificationIfNoChanges = skipModificationIfNoChanges;

            dataModification = new BasicDataModification();
            if (firstModificationMethod != null)
            {
                dataModification.AddModificationMethod(firstModificationMethod);
            }

            this.actionGetter = actionGetter;
            this.validationDm = validationDm;
        }
        internal ActionPostBack(
            bool forceFullPagePostBack, IEnumerable<UpdateRegionSet> updateRegions, string id, bool? forcePageDataUpdate, bool skipModificationIfNoChanges,
            Action<PostBackValueDictionary, Validator> firstTopValidationMethod, Action firstModificationMethod, Func<PostBackAction> actionGetter,
            DataModification validationDm)
            : base(forceFullPagePostBack, id, forcePageDataUpdate)
        {
            this.updateRegions = updateRegions ?? new UpdateRegionSet[ 0 ];
            this.skipModificationIfNoChanges = skipModificationIfNoChanges;

            dataModification = new BasicDataModification();
            if( firstTopValidationMethod != null )
                dataModification.AddTopValidationMethod( firstTopValidationMethod );
            if( firstModificationMethod != null )
                dataModification.AddModificationMethod( firstModificationMethod );

            this.actionGetter = actionGetter;
            this.validationDm = validationDm;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Adds a modification method. These only execute if all validation methods succeed.
 /// </summary>
 public void AddModificationMethod(Action modificationMethod)
 {
     dataModification.AddModificationMethod(modificationMethod);
 }