示例#1
0
        public static InputOption New(string value, string displayValue = null,
                                      string index = null, string controller = null, string action = null)
        {
            var option = new InputOption
            {
                Value        = value,
                DisplayValue = displayValue,
                Index        = index,
                Controller   = controller,
                Action       = action
            };

            return(option);
        }
示例#2
0
 /// <summary>
 /// Add possible input option to  input.
 /// Makes input a selection based input.
 /// </summary>
 /// <param name="value"></param>
 /// <param name="displayValue"></param>
 /// <returns></returns>
 public Input Option(string value, string displayValue = null)
 {
     Options.Add(InputOption.New(value, displayValue));
     return(this);
 }