Exemplo n.º 1
0
        public override AmlCollection ToAml()
        {
            var button = new Attribute();

            button.Name = "Button";
            var buttonValue = new Attribute();

            if (Description != null)
            {
                buttonValue.Name = "aml-text=" + Description;
            }
            buttonValue.AttributeDataType = "xs:integer";
            var value = new Value
            {
                Content = ButtonValue.ToString()
            };

            buttonValue.Value = value;
            button.Attributes.Add(buttonValue);
            var actionStartedMessage           = new Attribute();
            var actionStartedMessageSubelement = new Attribute();

            if (ActionStartedMessage != null)
            {
                actionStartedMessageSubelement.Name = "aml-text=" + ActionStartedMessage;
            }
            actionStartedMessage.Attributes.Add(actionStartedMessageSubelement);
            button.Attributes.Add(actionStartedMessage);

            return(AmlCollection.Of(button));
        }
Exemplo n.º 2
0
        public ActionResult Authorise(string id, string authoriseChoice)
        {
            ButtonValue submitValue = HtmlHelperExtensions.EvalAuthoriseButton(this, authoriseChoice);

            return(Redirect("/?" + submitValue.ToString()));
        }