Esempio n. 1
0
        public void SetValues(params string[] providedValues)
        {
            ArrayParser   MyParser         = new ArrayParser(providedValues);
            List <string> ListOfProperties = new List <string>();

            FillProperties(ref ListOfProperties);


            if (providedValues.Length != ListOfProperties.Count)
            {
                throw new ArgumentException("Provided list has invalid length");
            }
            else
            {
                MyParser.Set(ref FieldID);
                MyParser.Set(ref FieldNumber);
                MyParser.Set(ref FieldLabel);
            }
        }
Esempio n. 2
0
        public void SetValues(params string[] providedValues)
        {
            ArrayParser   MyParser         = new ArrayParser(providedValues);
            List <string> ListOfProperties = new List <string>();

            FillProperties(ref ListOfProperties);


            if (providedValues.Length != ListOfProperties.Count)
            {
                throw new ArgumentException("Provided list has invalid length");
            }
            else
            {
                MyParser.Set(ref FieldID);
                MyParser.Set(ref FieldNameOfType);
                MyParser.Set(ref FieldFormat);
                MyParser.Set(ref FieldParse);
                MyParser.Set(ref FieldIfEnum);
                MyParser.Set(ref FieldValidationFunction);
                MyParser.Set(ref FieldDefaultValue);
            }
        }
Esempio n. 3
0
        public void SetValues(params string[] providedValues)
        {
            ArrayParser   MyParser         = new ArrayParser(providedValues);
            List <string> ListOfProperties = new List <string>();

            FillProperties(ref ListOfProperties);


            if (providedValues.Length != ListOfProperties.Count)
            {
                throw new ArgumentException("Provided list has invalid length");
            }
            else
            {
                MyParser.Set(ref FieldID);
                MyParser.Set(ref FieldNameOfField);
                MyParser.Set(ref FieldIDType);
                MyParser.Set(ref FieldDefaultValue);
                MyParser.Set(ref FieldIfMandatory);
                MyParser.Set(ref FieldIfHidden);
                MyParser.Set(ref FieldIDTable);
                MyParser.Set(ref FieldIfDependent);
                MyParser.Set(ref FieldIDMasterField);
                MyParser.Set(ref FieldIfUnique);
                MyParser.Set(ref FieldIDConstraint);
                MyParser.Set(ref FieldDescription);
            }
        }