Esempio 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;
        }