Exemplo n.º 1
0
        public RadioTokenHelper(DisplayableToken displayableToken)
        {
            if (!displayableToken.Name.Equals("FormRadio"))
            {
                throw new ArgumentException("Not a radio token", "displayableToken");
            }

            _displayableToken = displayableToken;
        }
        public FreeTextareaTokenHelper(DisplayableToken displayableToken)
        {
            if (!displayableToken.Name.Equals("FormTextarea"))
            {
                throw new ArgumentException("Not a textarea token", "displayableToken");
            }

            _displayableToken = displayableToken;
        }
Exemplo n.º 3
0
        public SelectTokenHelper(DisplayableToken displayableToken)
        {
            if (!displayableToken.Name.Equals("FormSelect"))
            {
                throw new ArgumentException("Not a select token", "displayableToken");
            }

            _displayableToken = displayableToken;
        }
Exemplo n.º 4
0
        public InputTokenHelper(DisplayableToken displayableToken)
        {
            if (!displayableToken.Name.Equals("FormInput"))
            {
                throw new ArgumentException("Not an input token", "displayableToken");
            }

            _displayableToken = displayableToken;
        }
        public CheckboxTokenHelper(DisplayableToken displayableToken)
        {
            if (!displayableToken.Name.Equals("FormCheckbox"))
            {
                throw new ArgumentException("Not a checkbox token", "displayableToken");
            }

            _displayableToken = displayableToken;
        }
Exemplo n.º 6
0
        public FileTokenHelper(DisplayableToken displayableToken)
        {
            if (!displayableToken.Name.Equals("FormFile"))
            {
                throw new ArgumentException("Not a file token", "displayableToken");
            }

            _displayableToken = displayableToken;
        }