예제 #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 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);
            }
        }
예제 #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 FieldNumber);
                MyParser.Set(ref FieldLabel);
            }
        }
예제 #3
0
파일: Types.cs 프로젝트: ardud/ClassLibrary
        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);
            }
        }