コード例 #1
0
        private IReadOnlyCollection <FlowComponent> getProcessingDialog()
        {
            // This is used by the EWF JavaScript file.
            var dialogClass = new ElementClass("ewfProcessingDialog");

            return
                (new GenericFlowContainer(
                     new Paragraph(
                         new Spinner().ToCollection <PhrasingComponent>()
                         .Concat(Translation.Processing.ToComponents())
                         .Concat(getProcessingDialogEllipsisDot(1))
                         .Concat(getProcessingDialogEllipsisDot(2))
                         .Concat(getProcessingDialogEllipsisDot(3)),
                         classes: processingDialogProcessingParagraphClass).ToCollection()
                     .Concat(
                         new Paragraph(
                             new EwfButton(
                                 new StandardButtonStyle(Translation.ThisSeemsToBeTakingAWhile, buttonSize: ButtonSize.ShrinkWrap),
                                 behavior: new CustomButtonBehavior(() => "stopPostBackRequest();")).ToCollection(),
                             classes: processingDialogTimeOutParagraphClass)),
                     classes: dialogClass.Add(processingDialogBlockInactiveClass)).ToCollection());
        }