示例#1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="field">The conditional input field to construct.</param>
 public ConditionInputField(ConditionInputField field)
 {
     name      = field.name;
     value     = field.value;
     inputType = field.inputType;
     pressType = field.pressType;
     key       = field.key;
 }
示例#2
0
        // --------------------------------------------------------------
        // Methods
        // --------------------------------------------------------------

        /// <summary>
        /// Clone the conditional input field, remove references.
        /// </summary>
        /// <param name="field">The conditional input field to clone.</param>
        /// <returns>The cloned conditional input field.</returns>
        public ConditionInputField Clone(ConditionInputField field)
        {
            ConditionInputField temp = new ConditionInputField();

            temp.name      = field.name;
            temp.value     = field.value;
            temp.inputType = field.inputType;
            temp.pressType = field.pressType;
            temp.key       = field.key;
            return(temp);
        }