Esempio n. 1
0
        /// <summary>
        /// Creates a confirmation behavior. If you have form controls that should open the same dialog via implicit submission, use
        /// <see cref="ConfirmationFormAction"/> instead.
        /// </summary>
        /// <param name="dialogContent"></param>
        /// <param name="postBack">Pass null to use the post-back corresponding to the first of the current data modifications.</param>
        public ConfirmationButtonBehavior(IReadOnlyCollection <FlowComponent> dialogContent, PostBack postBack = null)
        {
            var id = new ConfirmationDialogId();

            dialog             = new ConfirmationDialog(id, dialogContent, postBack: postBack);
            confirmationAction = new ConfirmationFormAction(id);
        }